mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
16 lines
389 B
Plaintext
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
|