+PRE_DEINSTALL 312 Bytes
Newer Older
1 2 3
echo "Resetting root shell"
pw usermod -n root -s /bin/csh

4 5 6 7 8
echo "Updating /etc/shells"
cp /etc/shells /etc/shells.bak
(grep -v /usr/local/etc/rc.initial /etc/shells.bak) > /etc/shells
rm -f /etc/shells.bak

9 10
echo "Unhooking from /etc/rc"
cp /etc/rc /etc/rc.bak
11
tail -n +5 /etc/rc.bak > /etc/rc
12
rm -f /etc/rc.bak