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

Diff of /trunk/sbin/functions.sh

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

Revision 1201 Revision 1202
604# return 0 if path is the mountpoint of a networked filesystem 604# return 0 if path is the mountpoint of a networked filesystem
605# 605#
606# EXAMPLE: if is_net_fs / ; then ... 606# EXAMPLE: if is_net_fs / ; then ...
607# 607#
608is_net_fs() { 608is_net_fs() {
609 local fstype=$(mount -o remount -fv "$1" | awk '{print $(NF-1)}') 609 # Don't call remount as that may not be actuall how we are mounted
610 local fstype=$( mount | sed -n -e 's:.* on '$1' type \(.*\) .*:\1:p' )
610 [[ " ${NET_FS_LIST} " == *" ${fstype} "* ]] 611 [[ " ${NET_FS_LIST} " == *" ${fstype} "* ]]
611 return $? 612 return $?
612} 613}
613 614
614# bool is_uml_sys() 615# bool is_uml_sys()

Legend:
Removed from v.1201  
changed lines
  Added in v.1202

  ViewVC Help
Powered by ViewVC 1.1.20