Maintenance for a few modules (#42)

This commit is contained in:
WM
2018-08-27 02:32:32 +02:00
committed by Sebastian Kinne
parent 13b3c40d76
commit a5d7d19cd5
161 changed files with 16954 additions and 10056 deletions

View File

@@ -12,8 +12,8 @@ touch /tmp/nmap.progress
if [ "$1" = "install" ]; then
if [ "$2" = "internal" ]; then
opkg update
opkg install nmap
opkg update
opkg install nmap
elif [ "$2" = "sd" ]; then
opkg update
opkg install nmap --dest sd
@@ -30,8 +30,8 @@ if [ "$1" = "install" ]; then
uci commit nmap.module.installed
elif [ "$1" = "remove" ]; then
opkg remove nmap
rm -rf /etc/config/nmap
opkg remove nmap
rm -rf /etc/config/nmap
fi
rm /tmp/nmap.progress

View File

@@ -12,7 +12,7 @@ if [ "$1" = "start" ]; then
mv /tmp/nmap.scan /pineapple/modules/nmap/scan/scan_${MYTIME}
rm -rf /tmp/nmap.run
elif [ "$1" = "stop" ]; then
killall nmap
killall -9 nmap
rm -rf /tmp/nmap.run
rm -rf /tmp/nmap.scan
fi