diff options
Diffstat (limited to 'rc.lib')
-rw-r--r-- | rc.lib | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -75,3 +75,12 @@ parse_cmdline() { esac done } + +mnt() { + [ -f /proc/mounts ] && while read -r _ mnt _; do + case "$mnt" in "$1") return 0; esac + done < /proc/mounts + + mnt="$1"; shift + mount "$@" "$mnt" 2>&1 | log +} |