[Fai-commit] r5314 - in trunk: debian examples/simple/scripts/FAIBASE

Thomas Lange lange at alioth.debian.org
Thu Apr 9 14:51:33 UTC 2009


Author: lange
Date: 2009-04-09 14:51:32 +0000 (Thu, 09 Apr 2009)
New Revision: 5314

Modified:
   trunk/debian/changelog
   trunk/examples/simple/scripts/FAIBASE/20-removable_media
Log:
20-removable_media: add fd0 entry to fstab only if device is present

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2009-04-09 14:48:04 UTC (rev 5313)
+++ trunk/debian/changelog	2009-04-09 14:51:32 UTC (rev 5314)
@@ -17,6 +17,7 @@
     (thanks Sebastian Harl) (closes: #504801)
   * lib/get-config-dir-svn: Added support for password in SVN URL  (thanks
     Robin Powell) (closes: #515057)
+  * 20-removable_media: add fd0 entry to fstab only if device is present
   
   [ Michael Tautschnig ]
   * setup-storage: Bumped version number to 1.0.4

Modified: trunk/examples/simple/scripts/FAIBASE/20-removable_media
===================================================================
--- trunk/examples/simple/scripts/FAIBASE/20-removable_media	2009-04-09 14:48:04 UTC (rev 5313)
+++ trunk/examples/simple/scripts/FAIBASE/20-removable_media	2009-04-09 14:51:32 UTC (rev 5314)
@@ -1,9 +1,9 @@
 #! /bin/bash
 
-# (c) Thomas Lange, 2006, lange at debian.org
+# (c) Thomas Lange, 2006,2009, lange at debian.org
 # create entries for removable media in fstab and directories in /media
 
-ainsl $target/etc/fstab "/dev/fd0  /media/floppy  auto  users,noauto 0 0"
+[ -b $target/dev/fd0 ] && ainsl $target/etc/fstab "/dev/fd0  /media/floppy  auto  users,noauto 0 0"
 
 cdromlist() {
     [ -f /proc/sys/dev/cdrom/info ] || return




More information about the Fai-commit mailing list