From 3145c8f9f62d9a2d122c4c4489dbccb0f2251f7b Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Sun, 16 Sep 2007 14:07:28 +0200 Subject: [PATCH] lsb-functions: removed get_mount_fstab() --- etc/grml/lsb-functions | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/etc/grml/lsb-functions b/etc/grml/lsb-functions index a4a48be..a269007 100644 --- a/etc/grml/lsb-functions +++ b/etc/grml/lsb-functions @@ -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 -- 2.1.4