Commit 78bdb9ae authored by Franco Fichtner's avatar Franco Fichtner

pkg: fix error on +PRE_DEINSTALL

parent 931efa68
...@@ -8,8 +8,7 @@ rm -f /etc/shells.bak ...@@ -8,8 +8,7 @@ rm -f /etc/shells.bak
echo "Unhooking from /etc/rc" echo "Unhooking from /etc/rc"
cp /etc/rc /etc/rc.bak cp /etc/rc /etc/rc.bak
LINES=\$(cat /etc/rc | wc -l) tail -n +5 /etc/rc.bak > /etc/rc
tail -n \$(expr \${LINES} - 4) /etc/rc.bak > /etc/rc
rm -f /etc/rc.bak rm -f /etc/rc.bak
echo "Enabling FreeBSD mirror" echo "Enabling FreeBSD mirror"
......
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