mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
20 lines
528 B
Plaintext
20 lines
528 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
|
|
LINES=\$(cat /etc/rc | wc -l)
|
|
tail -n \$(expr \${LINES} - 4) /etc/rc.bak > /etc/rc
|
|
rm -f /etc/rc.bak
|
|
|
|
echo "Enabling FreeBSD mirror"
|
|
sed -i "" -e "s/^ enabled: no$/ enabled: yes/" /etc/pkg/FreeBSD.conf
|
|
|
|
echo "Removing OPNsense version"
|
|
rm -f /usr/local/etc/version
|