003 File Manager
Current Path:
/usr/src/usr.sbin/autofs/autofs
usr
/
src
/
usr.sbin
/
autofs
/
autofs
/
📁
..
📄
Makefile
(213 B)
📄
include_ldap
(1.14 KB)
📄
include_nis
(120 B)
📄
include_nis_nullfs
(5.04 KB)
📄
special_hosts
(302 B)
📄
special_media
(3.54 KB)
📄
special_noauto
(405 B)
📄
special_null
(32 B)
Editing: special_hosts
#!/bin/sh # # $FreeBSD$ # if [ $# -eq 0 ]; then out=`getent hosts` [ $? -eq 0 ] || exit 1 echo "$out" | awk '{ print $2 }' | sort -u exit 0 fi out=`showmount -E "$1"` [ $? -eq 0 ] || exit 1 echo "$out" | awk -v host="$1" \ '{ printf "\"%s\"\t\"%s:%s\" ", $0, host, $0 } END { printf "\n" }'
Upload File
Create Folder