Modules fixes (#9)

This commit is contained in:
WM
2018-01-27 17:32:38 -05:00
committed by Sebastian Kinne
parent 1f13b82ee9
commit abe6d3060c
17 changed files with 79 additions and 53 deletions

View File

@@ -12,12 +12,16 @@ touch /tmp/nmap.progress
if [ "$1" = "install" ]; then
if [ "$2" = "internal" ]; then
opkg update
opkg update
opkg install nmap
elif [ "$2" = "sd" ]; then
opkg update
opkg install nmap --dest sd
fi
if [ ! -f /usr/lib/libpcap.so ] && [ -f /usr/lib/libpcap.so.1.3 ]; then
ln -s /usr/lib/libpcap.so /usr/lib/libpcap.so.1.3
fi
touch /etc/config/nmap
echo "config nmap 'module'" > /etc/config/nmap