post-install/post-remove are now reasonably complete.

This commit is contained in:
Wouter R
2013-05-14 15:09:56 +02:00
parent 9789fdc0c3
commit ce11cd8c1d
5 changed files with 64 additions and 41 deletions
Executable
+20
View File
@@ -0,0 +1,20 @@
#!/bin/sh
if [ -f /etc/banner.default ]; then
mv /etc/banner.default /etc/banner
fi
rmdir /usr/share/lua/autowifi/ext/www/cgi-bin
rm /usr/share/lua/autowifi/ext/www/admin
rmdir /usr/share/lua/autowifi/ext/www
rmdir /usr/share/lua/autowifi/admin
rmdir /usr/share/lua/autowifi/ext
rmdir /usr/share/lua/autowifi/misc
rmdir /usr/share/lua/autowifi
rmdir /usr/share/lua
rm /www/admin
rmdir /www/cgi-bin
echo "The wifibox banner has been removed. Changes to the root profile however, have"
echo "not been reverted, as haven't the wlan firewall zone and the radio0 device state."
echo "NOTE: config changes have not been implemented yet."