mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
We now use /usr/local/opnsense/version/xxx as our version database. Apart from the core package, opnsense-update(8) also puts its own version information in there. To stay somewhat consistent, the version file should resemble the package name, even though that looks strange in our case: /usr/local/opnsense/version/opnsense. It's just that /usr/local/etc is too open and might clash with other things in the future.
19 lines
492 B
Plaintext
19 lines
492 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 "Enabling FreeBSD mirror"
|
|
sed -i "" -e "s/^ enabled: no$/ enabled: yes/" /etc/pkg/FreeBSD.conf
|
|
|
|
echo "Removing OPNsense version"
|
|
rm -f /usr/local/opnsense/version/opnsense
|