kernel - Fix busdma allocation bug
[dragonfly.git] / etc / autofs / special_noauto
blob09555cd92c15869412a6a523d03a2a960fa6e119
1 #!/bin/sh
3 # $FreeBSD$
6 print_available() {
7 sed 's/#.*//' /etc/fstab | awk '$4 ~ /noauto/ { print $2 }'
10 print_one() {
11 local _mntpoint
13 _mntpoint="${1%/}"
15 sed 's/#.*//' /etc/fstab | awk '
16 $2 == "'"${_mntpoint}"'" && $4 ~ /noauto/ {
17 if ($1 ~ /:/) { dev=$1 } else { dev=":"$1 }
18 print "-fstype=" $3 "," $4, dev
22 if [ $# -eq 0 ]; then
23 print_available
24 exit 0
27 print_one "$1"
28 exit 0