Make /usr/local a symlink to /rw/usrlocal.

This commit is contained in:
Rafal Wojtczuk 2010-05-20 16:52:47 +02:00 committed by Joanna Rutkowska
parent d0d82a5090
commit 56d44d5bab

View File

@ -59,6 +59,14 @@ start()
echo "nameserver $gateway" > /etc/resolv.conf
echo "nameserver $secondary_dns" >> /etc/resolv.conf
fi
if ! [ -L /usr/local ] ; then
mv /usr/local /usr/local.orig
ln -s /rw/usrlocal /usr/local
fi
if ! [ -d /rw/usrlocal ] ; then
cp -a /usr/local.orig /rw/usrlocal
fi
fi