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
cal(1): Fix locales handling.
[dragonfly.git]
/
etc
/
autofs
/
special_hosts
blob
c49854681451b2a6771bd2237c9ad249cf9013ae
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
6
if
[
$#
-eq
0
];
then
7
out
=
`getent hosts`
8
[
$?
-eq
0
]
||
exit
1
9
echo
"
$out
"
|
awk
'{ print
$2
}'
|
sort
-u
10
exit
0
11
fi
12
13
out
=
`showmount -E "
$1
"`
14
[
$?
-eq
0
]
||
exit
1
15
echo
"
$out
"
|
awk
-v
host
=
"
$1
"
\
16
'{ printf "
\"
%s
\"\t\"
%s:%s
\"
",
$0
, host,
$0
} END { printf "
\n
" }'
17