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/DNSspoof.progress
if [ "$1" = "install" ]; then
if [ "$2" = "internal" ]; then
opkg update
opkg install dnsspoof
opkg update
opkg install dnsspoof
elif [ "$2" = "sd" ]; then
opkg update
opkg install dnsspoof --dest sd
@@ -28,8 +28,8 @@ if [ "$1" = "install" ]; then
uci commit dnsspoof.module.installed
elif [ "$1" = "remove" ]; then
opkg remove dnsspoof
rm -rf /etc/config/dnsspoof
opkg remove dnsspoof
rm -rf /etc/config/dnsspoof
fi
rm /tmp/DNSspoof.progress

View File

@@ -11,5 +11,5 @@ HOSTSFILE="/etc/pineapple/spoofhost"
if [ "$1" = "start" ]; then
dnsspoof -i ${MYINTERFACE} -f ${HOSTSFILE} > /dev/null 2> /pineapple/modules/DNSspoof/log/output_${MYTIME}.log
elif [ "$1" = "stop" ]; then
killall dnsspoof
killall -9 dnsspoof
fi