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 e9f3414ef6
commit 1b59b440e4

View File

@ -59,6 +59,14 @@ start()
echo "nameserver $gateway" > /etc/resolv.conf echo "nameserver $gateway" > /etc/resolv.conf
echo "nameserver $secondary_dns" >> /etc/resolv.conf echo "nameserver $secondary_dns" >> /etc/resolv.conf
fi 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 fi