You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-fs/devfsd/files/devfs-start.sh

29 lines
622 B

# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
main() {
local mymounts=$(awk '($2 == "devfs") { print "yes"; exit 0 }' /proc/filesystems)
# Is devfs support compiled in?
if [[ ${mymounts} == "yes" ]] ; then
if [[ ${devfs_automounted} == "no" ]] ; then
ebegin "Mounting devfs at /dev"
try mount -n -t devfs devfs /dev
eend $?
else
ebegin "Kernel automatically mounted devfs at /dev"
eend 0
fi
ebegin "Starting devfsd"
/sbin/devfsd /dev >/dev/null
eend $? "Could not start /sbin/devfsd"
else
devfs="no"
fi
}
main
# vim:ts=4