From: Frank Terbeck Date: Sun, 16 Sep 2007 12:07:28 +0000 (+0200) Subject: lsb-functions: removed get_mount_fstab() X-Git-Tag: 0.3.27~7 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=3145c8f9f62d9a2d122c4c4489dbccb0f2251f7b lsb-functions: removed get_mount_fstab() --- 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