rc.d/devfs: Add missing line termination.
[dragonfly.git] / etc / rc.d / devfs
CommitLineData
b374f6d5
MS
1#!/bin/sh
2#
5ee7b598
SW
3# Load default devfs(5) rules.
4#
b374f6d5
MS
5
6# PROVIDE: devfs
7# REQUIRE: rcconf
5ee7b598 8# BEFORE: disks initrandom
b374f6d5
MS
9
10. /etc/rc.subr
11
12name="devfs"
5ee7b598 13
b374f6d5 14load_rc_config $name
5ee7b598 15dummy_rc_command "$1"
b374f6d5
MS
16
17load_rules()
18{
5ee7b598 19 echo -n "Loading devfs rules:"
b374f6d5
MS
20 set -- $devfs_config_files
21 for file; do
5ee7b598 22 [ -r $file ] && echo -n " $file" && /sbin/devfsctl -a -f $file
b374f6d5 23 done
321551d8 24 echo '.'
b374f6d5
MS
25}
26
5ee7b598
SW
27case "$1" in
28*start)
29 load_rules
30 ;;
31esac