mirror of
https://github.com/opnsense/core.git
synced 2026-02-03 20:39:42 -05:00
This also has an issue with the post-update rc.syshook if the wwwonly is not found. But: after a boot it is ensured and should not be missing thereafter. The package post-install would ensure it previously, but we don't want to also chain the php bootstrap through this just to get the call stack in the right order. May need further adjusting but also no need to rush this into a stable release at the moment.
22 lines
638 B
Text
22 lines
638 B
Text
/usr/local/etc/rc.d/configd stop
|
|
|
|
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/sbin/opnsense-shell /etc/shells.bak) > /etc/shells
|
|
rm -f /etc/shells.bak
|
|
cp /etc/shells /etc/shells.bak
|
|
(grep -v /usr/local/sbin/opnsense-installer /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
|
|
|
|
echo "Unhooking from /etc/rc.shutdown"
|
|
cp /etc/rc.shutdown /etc/rc.shutdown.bak
|
|
tail -n +4 /etc/rc.shutdown.bak > /etc/rc.shutdown
|
|
rm -f /etc/rc.shutdown.bak
|