Commit a84ebd98 authored by Franco Fichtner's avatar Franco Fichtner

pkg: better FreeBSD repo override

parent cb761a34
/src/etc/pkg.conf
/src/etc/pkg/**
/src/etc/pkg/OPNsense.conf
/src/etc/ssh/**
/src/etc/php.ini
/src/lib/**
......
......@@ -7,9 +7,6 @@ rm -f /etc/shells.bak
echo "Registering root shell"
pw usermod -n root -s /usr/local/etc/rc.initial
echo "Disabling FreeBSD mirror"
sed -i "" -e "s/^ enabled: yes$/ enabled: no/" /etc/pkg/FreeBSD.conf
echo "Hooking into /etc/rc"
cp /etc/rc /etc/rc.bak
cat > /etc/rc <<EOF
......
......@@ -11,8 +11,5 @@ 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
FreeBSD: { enabled: no }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment