repo.or.cz
/
dragonfly.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
kernel - Fix busdma allocation bug
[dragonfly.git]
/
etc
/
autofs
/
special_noauto
blob
09555cd92c15869412a6a523d03a2a960fa6e119
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
6
print_available
() {
7
sed
's/#.*//'
/
etc
/
fstab |
awk
'
$4
~ /noauto/ { print
$2
}'
8
}
9
10
print_one
() {
11
local
_mntpoint
12
13
_mntpoint
=
"
${1%/}
"
14
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
19
}'
20
}
21
22
if
[
$#
-eq
0
];
then
23
print_available
24
exit
0
25
fi
26
27
print_one
"
$1
"
28
exit
0
29