mirror of
https://github.com/hak5/nano-tetra-modules.git
synced 2025-10-29 16:58:09 +00:00
Maintenance for a few modules (#42)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user