[csw-devel] SF.net SVN: gar:[7512] csw/mgar/pkg/bind/trunk/files/CSWbindchroot. postinstall

bonivart at users.sourceforge.net bonivart at users.sourceforge.net
Tue Dec 1 00:14:49 CET 2009


Revision: 7512
          http://gar.svn.sourceforge.net/gar/?rev=7512&view=rev
Author:   bonivart
Date:     2009-11-30 23:14:49 +0000 (Mon, 30 Nov 2009)

Log Message:
-----------
bind: fix for device files on sparcs

Modified Paths:
--------------
    csw/mgar/pkg/bind/trunk/files/CSWbindchroot.postinstall

Modified: csw/mgar/pkg/bind/trunk/files/CSWbindchroot.postinstall
===================================================================
--- csw/mgar/pkg/bind/trunk/files/CSWbindchroot.postinstall	2009-11-30 20:05:20 UTC (rev 7511)
+++ csw/mgar/pkg/bind/trunk/files/CSWbindchroot.postinstall	2009-11-30 23:14:49 UTC (rev 7512)
@@ -7,8 +7,13 @@
 
 for i in $DEVICELIST
 do
-  DEV=`ls -l /dev/$i | awk '{print $11}'`
-  DEVICE=`ls -l /dev/$DEV`
+  DEV=`ls -l /dev/$i | cut -c1`
+  if [ "$DEV" = "c" ]; then
+    DEVICE=`ls -l /dev/$i`
+  else
+    DEV=`ls -l /dev/$i | awk '{print $11}'`
+    DEVICE=`ls -l /dev/$DEV`
+  fi
   MAJOR=`echo $DEVICE | awk '{print $5}' | awk -F',' '{print $1}'`
   MINOR=`echo $DEVICE | awk '{print $6}'`
   echo "Creating device $i ($MAJOR,$MINOR)"


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list