Expand PMF_FN_* macros.
[netbsd-mini2440.git] / etc / rc.d / gpio
blob0090eca9a22142dfcdadb6c46935122fabbca7e8
1 #!/bin/sh
3 # $NetBSD$
6 # PROVIDE: gpio
7 # BEFORE: securelevel
9 $_rc_subr_loaded . /etc/rc.subr
11 name="gpio"
12 rcvar=$name
13 start_cmd="gpio_start"
14 stop_cmd=":"
16 gpio_start()
18 if [ -f /etc/gpio.conf ]; then
19 echo "Configuring GPIO."
20 cat /etc/gpio.conf |
21 while read -r args; do
22 args=${args%%#*} # strip comments
23 test -z "$args" && continue
24 /usr/sbin/gpioctl -q $args
25 done
29 load_rc_config $name
30 run_rc_command "$1"