From 3a0bcbfd826e75809e778deb36747f645ea58681 Mon Sep 17 00:00:00 2001
From: Carl Baldwin <cnb@ball.(none)>
Date: Mon, 31 Oct 2005 08:47:24 -0700
Subject: [PATCH] Fix paths etc

---
 scripts/burn-imgs.sh  | 5 +++--
 scripts/cron.sh       | 2 +-
 scripts/eject-disk.sh | 2 +-
 scripts/pack-image.sh | 2 +-
 4 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/scripts/burn-imgs.sh b/scripts/burn-imgs.sh
index c0feedf..2be9e0a 100755
--- a/scripts/burn-imgs.sh
+++ b/scripts/burn-imgs.sh
@@ -1,12 +1,11 @@
 #!/bin/sh
 
-PATH=$(dirname $0):/bin:/usr/bin
+export PATH=$(dirname $0):/bin:/usr/bin:/sbin
 
 . config.sh
 
 # If the noburn file is there then don't burn.
 [ -f "$noburnfile" ] && exit 0
-touch $noburnfile
 
 # Discover disk images by looking for .img.md5sum files in $imagedir
 imgmd5=$(ls $imagedir/*.img.md5sum 2>/dev/null | head -n 1)
@@ -26,6 +25,8 @@ img=${imgmd5%.md5sum}
 
 echo Image: $img
 
+touch $noburnfile
+
 # A little paranoia.  Make sure the disk image file is there.
 [ -z "$img" ] && exit 1
 [ -s "$img" ] || exit 1
diff --git a/scripts/cron.sh b/scripts/cron.sh
index ab6b47d..d052bd9 100755
--- a/scripts/cron.sh
+++ b/scripts/cron.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-export PATH=$(dirname $0):/bin:/usr/bin
+export PATH=$(dirname $0):/bin:/usr/bin:/sbin
 
 . config.sh
 
diff --git a/scripts/eject-disk.sh b/scripts/eject-disk.sh
index cca22ce..32220f1 100755
--- a/scripts/eject-disk.sh
+++ b/scripts/eject-disk.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-export PATH=$(dirname $0):/bin:/usr/bin
+export PATH=$(dirname $0):/bin:/usr/bin:/sbin
 
 . config.sh
 
diff --git a/scripts/pack-image.sh b/scripts/pack-image.sh
index 5bbfc96..89c9c0e 100755
--- a/scripts/pack-image.sh
+++ b/scripts/pack-image.sh
@@ -2,7 +2,7 @@
 
 scriptsdir=$(dirname $0)
 
-export PATH=$scriptsdir:$PATH
+export PATH=$scriptsdir:/bin:/usr/bin:/sbin:/usr/sbin
 
 . config.sh
 
-- 
2.34.1