core/+PRE_DEINSTALL
Franco Fichtner 80a70ffe05 rc/pkg: remove the automount features, they are not needed anymore
The new package targets have no drawbacks compared to auto live
mount, but the latter has proven difficult and does not match the
normal boot scenario and could potentially panic due to unionfs
being broken beyond repair (kib@'s words in spirit, not mine).

Discussed with: @adschellevis
2016-03-12 10:09:30 +01:00

13 lines
312 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 +4 /etc/rc.bak > /etc/rc
rm -f /etc/rc.bak