Browse Source

add hostapd to rc/rc.conf glue

suggested and ok by kettenis@
OPENBSD_4_0
reyk 19 years ago
parent
commit
5ff13d280b
2 changed files with 7 additions and 2 deletions
  1. +5
    -1
      src/etc/rc
  2. +2
    -1
      src/etc/rc.conf

+ 5
- 1
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.280 2006/03/22 15:57:55 hshoexer Exp $
# $OpenBSD: rc,v 1.281 2006/03/27 16:53:10 reyk Exp $
# System startup script run by init on autoboot
# or after single-user.
@ -614,6 +614,10 @@ if ifconfig lo0 inet6 >/dev/null 2>&1; then
fi
fi
if [ X"${hostapd_flags}" != X"NO" ]; then
echo -n ' hostapd'; /usr/sbin/hostapd ${hostapd_flags};
fi
# $rwhod is imported from /etc/rc.conf;
# if $rwhod == YES, rwhod is run.
if [ X"${rwhod}" = X"YES" ]; then


+ 2
- 1
src/etc/rc.conf View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: rc.conf,v 1.110 2006/03/22 15:57:56 hshoexer Exp $
# $OpenBSD: rc.conf,v 1.111 2006/03/27 16:53:10 reyk Exp $
# set these to "NO" to turn them off. otherwise, they're used as flags
routed_flags=NO # for normal use: "-q"
@ -33,6 +33,7 @@ sensorsd_flags=NO # for normal use: ""
hotplugd_flags=NO # for normal use: ""
watchdogd_flags=NO # for normal use: ""
ftpproxy_flags=NO # for normal use: ""
hostapd_flags=NO # for normal use: ""
# use -u to disable chroot, see httpd(8)
httpd_flags=NO # for normal use: "" (or "-DSSL" after reading ssl(8))


Loading…
Cancel
Save