Browse Source

correct path for true to work on osx / bsd

Mattheus Happe 9 years ago
parent
commit
bd33400e2c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      massflash.sh

+ 2 - 1
massflash.sh

@@ -2,13 +2,14 @@
 
 flashscript=`dirname $0`
 flashscript="${flashscript}/autoflash.sh"
+true=`which true`
 
 if [ ! -x $flashscript ]; then
 	echo "Error, failed to find autoflash support script at '$flashscript'"
 	exit 1
 fi
 
-while /bin/true; do
+while $true; do
 
 	echo -en "Waiting for virgin router to appear on 192.168.0.1 ..."
 	while ! ping -n -c 1 -W 1 192.168.0.1 > /dev/null; do