pkg: fix error on +PRE_DEINSTALL

This commit is contained in:
Franco Fichtner 2015-02-27 23:06:52 +01:00
parent 931efa6867
commit 78bdb9aef5

View File

@ -8,8 +8,7 @@ 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
tail -n +5 /etc/rc.bak > /etc/rc
rm -f /etc/rc.bak
echo "Enabling FreeBSD mirror"