From 5ff13d280bcd17dc8090508e687a94b216454f0c Mon Sep 17 00:00:00 2001 From: reyk <> Date: Mon, 27 Mar 2006 16:53:10 +0000 Subject: [PATCH] add hostapd to rc/rc.conf glue suggested and ok by kettenis@ --- src/etc/rc | 6 +++++- src/etc/rc.conf | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/etc/rc b/src/etc/rc index 3191c156..5b2bc549 100644 --- a/src/etc/rc +++ b/src/etc/rc @@ -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 diff --git a/src/etc/rc.conf b/src/etc/rc.conf index e9ac68a1..e919bf13 100644 --- a/src/etc/rc.conf +++ b/src/etc/rc.conf @@ -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))