[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gobolinux-commits
Subject:    [gobolinux-commits] r4351 - trunk/ConfigTools/bin
From:       lucasvr () svn ! gobolinux ! org
Date:       2010-03-18 1:57:42
Message-ID: 20100318015742.98D645D5D9 () bengals ! dreamhost ! com
[Download RAW message or body]

Author: lucasvr
Date: 2010-03-17 18:57:42 -0700 (Wed, 17 Mar 2010)
New Revision: 4351

Modified:
   trunk/ConfigTools/bin/dev2grub.sh
Log:
Throw warnings away; Force creation of /System/Kernel/Boot/grub if it doesn't exist.

Modified: trunk/ConfigTools/bin/dev2grub.sh
===================================================================
--- trunk/ConfigTools/bin/dev2grub.sh	2010-02-21 13:31:32 UTC (rev 4350)
+++ trunk/ConfigTools/bin/dev2grub.sh	2010-03-18 01:57:42 UTC (rev 4351)
@@ -4,9 +4,10 @@
 
 host_os=linux
 device_map=/System/Kernel/Boot/grub/device.map
-entries=`wc -l $device_map | awk {'print $1'}`
+entries=$(wc -l $device_map 2> /dev/null | awk {'print $1'})
 if [ ! -e "$device_map" ] || [ $entries = 0 ]
 then
+	mkdir -p $(dirname $device_map)
 	grub-mkdevicemap --device-map="$device_map"
 fi
 

_______________________________________________
gobolinux-commits mailing list
gobolinux-commits@lists.gobolinux.org
http://lists.gobolinux.org/mailman/listinfo/gobolinux-commits
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic