mount iso subdirectory if in /etc/fstab
[pxelator] / bin / start.sh
index bb5b6b0..bf7a554 100755 (executable)
@@ -1,3 +1,10 @@
 #!/bin/sh -x
 
-exec perl -Ilib/PXElator -Ilib -Mhttpd -e httpd::start
+if [ ! -z "$1" ] ; then
+       DEV=$1
+fi
+
+sudo /etc/init.d/dnsmasq stop
+sudo mount iso
+echo $DEV
+sudo DEV=$DEV perl -Ilib/PXElator -Ilib -Mhttpd -e httpd::start