From 8c5afb4427082031b3965070735a9256c0f25eec Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Tue, 11 Aug 2009 12:38:04 +0000 Subject: [PATCH] device can now be first argument, stop dnsmasq if it exists --- bin/start.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/start.sh b/bin/start.sh index 4d5dc63..598e7e8 100755 --- a/bin/start.sh +++ b/bin/start.sh @@ -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 -- 2.20.1