[Fai-commit] r3261 - people/lazyboy/fai-2.9-multidistribution/examples/simple/class

fai-repository at svn.debian.org fai-repository at svn.debian.org
Sun Jan 22 22:45:28 UTC 2006


Author: lazyboy-guest
Date: 2006-01-22 22:45:26 +0000 (Sun, 22 Jan 2006)
New Revision: 3261

Modified:
   people/lazyboy/fai-2.9-multidistribution/examples/simple/class/10-base-classes
   people/lazyboy/fai-2.9-multidistribution/examples/simple/class/20-hwdetect.source
Log:
fixing examples classes bug

Modified: people/lazyboy/fai-2.9-multidistribution/examples/simple/class/10-base-classes
===================================================================
--- people/lazyboy/fai-2.9-multidistribution/examples/simple/class/10-base-classes	2006-01-22 22:00:53 UTC (rev 3260)
+++ people/lazyboy/fai-2.9-multidistribution/examples/simple/class/10-base-classes	2006-01-22 22:45:26 UTC (rev 3261)
@@ -5,11 +5,16 @@
 
 uname -s | tr '[:lower:]' '[:upper:]'
 
-#### SMITH
+# FIXME: this will only work well for debian if
+# DISTRIBUTION=debian is set. but thuis will break other stuff, also
+# for the time being, we need to define more classes for sarge hosts
+# explicitly, see example host sarge!
 echo $DISTRIBUTION | tr '[:lower:]' '[:upper:]'
 case $DISTRIBUTION in
     debian)
         [ -x "`which dpkg`" ] && dpkg --print-installation-architecture | tr /a-z/ /A-Z/ ;;
+    "")
+        [ -x "`which dpkg`" ] && dpkg --print-installation-architecture | tr /a-z/ /A-Z/ ;;
     *)
         uname -i | tr '[:lower:]' '[:upper:]'
 esac

Modified: people/lazyboy/fai-2.9-multidistribution/examples/simple/class/20-hwdetect.source
===================================================================
--- people/lazyboy/fai-2.9-multidistribution/examples/simple/class/20-hwdetect.source	2006-01-22 22:00:53 UTC (rev 3260)
+++ people/lazyboy/fai-2.9-multidistribution/examples/simple/class/20-hwdetect.source	2006-01-22 22:45:26 UTC (rev 3261)
@@ -37,6 +37,9 @@
     debian)
         # let discover do most of the job
 	/etc/init.d/discover start ;;
+    "")
+        # let discover do most of the job
+	/etc/init.d/discover start ;;
     centos3)
         kudzu -q ;;
     *)




More information about the Fai-commit mailing list