core/pkg/+PRE_DEINSTALL
Franco Fichtner 313a8f2ace Revert "pkg: advertising the root shell menu isn't useful"
This reverts commit 7030a38a702095902b23b6549c1cb707fd65b361.
Avoids a warning on bootup when done.  It may throw people off.
2015-06-15 07:17:10 +02:00

16 lines
389 B
Plaintext

echo "Resetting root shell"
pw usermod -n root -s /bin/csh
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
echo "Unhooking from /etc/rc"
cp /etc/rc /etc/rc.bak
tail -n +5 /etc/rc.bak > /etc/rc
rm -f /etc/rc.bak
echo "Removing OPNsense version"
rm -f /usr/local/opnsense/version/opnsense