device can now be first argument, stop dnsmasq if it exists
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 11 Aug 2009 12:38:04 +0000 (12:38 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 11 Aug 2009 12:38:04 +0000 (12:38 +0000)
bin/start.sh

index 4d5dc63..598e7e8 100755 (executable)
@@ -1,3 +1,9 @@
 #!/bin/sh -x
 
+if [ ! -z "$1" ] ; then
+       DEV=$1
+fi
+
+sudo /etc/init.d/dnsmasq stop
+echo $DEV
 sudo DEV=$DEV perl -Ilib/PXElator -Ilib -Mhttpd -e httpd::start