diff options
| author | Cy Schubert <cy@FreeBSD.org> | 2021-12-13 23:47:51 +0000 |
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2021-12-14 14:18:37 +0000 |
| commit | 0da2c91e64528d896f69d36670e25b4b4a140579 (patch) | |
| tree | 4d4da1df10b0f31fac3ffbb3c0f0c5874540117e /libexec | |
| parent | 4d78ef3e811f5fb61ba2b550f0ea990ab12b83a9 (diff) | |
Diffstat (limited to 'libexec')
| -rwxr-xr-x | libexec/rc/rc.d/hostapd | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libexec/rc/rc.d/hostapd b/libexec/rc/rc.d/hostapd index 707316036604..7e1611350438 100755 --- a/libexec/rc/rc.d/hostapd +++ b/libexec/rc/rc.d/hostapd @@ -12,6 +12,13 @@ name="hostapd" desc="Authenticator for IEEE 802.11 networks" command=${hostapd_program} +start_postcmd="hostapd_poststart" + +hostapd_poststart() { + ifconfig ${ifn} down + sleep 2 + ifconfig ${ifn} up +} ifn="$2" if [ -z "$ifn" ]; then |
