/[baselayout]/trunk/sbin/functions.sh
Gentoo

Diff of /trunk/sbin/functions.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 794 Revision 795
644# cmd=${cmd:--t proc none /proc} 644# cmd=${cmd:--t proc none /proc}
645# mount -n ${cmd} 645# mount -n ${cmd}
646# 646#
647get_mount_fstab() { 647get_mount_fstab() {
648 awk '$1 ~ "^#" { next } 648 awk '$1 ~ "^#" { next }
649 $2 == "'$*'" { if (found++ == 0) { print "-t "$3,"-o "$4,$1,$2 } } 649 $2 == "'$*'" { if (found++ == 0) { print "-t "$3,"-o "$4,$1,$2 } }
650 END { if (found > 1) { print "More than one entry for '$*' found in /etc/fstab!" > "/dev/stderr" } } 650 END { if (found > 1) { print "More than one entry for '$*' found in /etc/fstab!" > "/dev/stderr" } }
651 ' /etc/fstab 651 ' /etc/fstab
652} 652}
653 653
654# bool is_older_than(reference, files/dirs to check) 654# bool is_older_than(reference, files/dirs to check)
655# 655#

Legend:
Removed from v.794  
changed lines
  Added in v.795

  ViewVC Help
Powered by ViewVC 1.1.20