lsb-functions: removed get_mount_fstab()
authorFrank Terbeck <ft@grml.org>
Sun, 16 Sep 2007 12:07:28 +0000 (14:07 +0200)
committerFrank Terbeck <ft@grml.org>
Sun, 16 Sep 2007 12:07:28 +0000 (14:07 +0200)
etc/grml/lsb-functions

index a4a48be..a269007 100644 (file)
@@ -383,21 +383,6 @@ add_suffix() {
     return 0
 }
 
-# bool get_mount_fstab(path)
-#
-#   return the parameters to pass to the mount command generated from fstab
-#
-#   EXAMPLE: cmd=$( get_mount_fstab /proc )
-#            cmd=${cmd:--t proc none /proc}
-#            mount -n ${cmd}
-#
-get_mount_fstab() {
-    awk '$1 ~ "^#" { next }
-         $2 == "'$*'" { if (found++ == 0) { print "-t "$3,"-o "$4,$1,$2 } }
-         END { if (found > 1) { print "More than one entry for '$*' found in /etc/fstab!" > "/dev/stderr" } }
-    ' /etc/fstab
-}
-
 # char *reverse_list(list)
 #
 #   Returns the reversed order of list