]> git.sur5r.net Git - bacula/rescue/commitdiff
Update
authorKern Sibbald <kern@sibbald.com>
Sat, 3 Jan 2009 15:12:53 +0000 (15:12 +0000)
committerKern Sibbald <kern@sibbald.com>
Sat, 3 Jan 2009 15:12:53 +0000 (15:12 +0000)
rescue/linux/usb/load_disk_image

index 7e99ddcc26895e04c950553b850645ccd106bbfe..e25019d10f40e3736b1cf1eab4398e660ea2e8c9 100755 (executable)
@@ -4,6 +4,13 @@
 #
 . ./config
 
 #
 . ./config
 
+if [ ! `whoami` = "root" ] ; then
+  echo ""
+  echo "You need to be root to run this shell script"
+  echo ""
+  exit 1
+fi
+
 umount ${USB_DEV}1
 mkfs.vfat -F 16 -n kubuntu8 ${USB_DEV}1
 mount ${MOUNT_POINT}/kubuntu8
 umount ${USB_DEV}1
 mkfs.vfat -F 16 -n kubuntu8 ${USB_DEV}1
 mount ${MOUNT_POINT}/kubuntu8