From d0b6b58313cc8e397d8527726184719771270697 Mon Sep 17 00:00:00 2001 From: Giulio Date: Thu, 21 May 2020 16:22:45 +0200 Subject: [PATCH] Fixed hostapd inti script path --- conf/etc/S90hostapd | 23 ----------------------- conf/etc/init.d/S90hostapd | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 23 deletions(-) delete mode 100644 conf/etc/S90hostapd diff --git a/conf/etc/S90hostapd b/conf/etc/S90hostapd deleted file mode 100644 index 2e2a8a7..0000000 --- a/conf/etc/S90hostapd +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -case "$1" in - start) - printf "Starting hostapd: " - start-stop-daemon -S -x /usr/sbin/hostapd -- -B /etc/hostapd.conf - [ $? = 0 ] && echo "OK" || echo "FAIL" - ;; - stop) - printf "Stopping hostapd: " - start-stop-daemon -K -q -x /usr/sbin/hostapd - [ $? = 0 ] && echo "OK" || echo "FAIL" - ;; - restart|reload) - $0 stop - $0 start - ;; - *) - echo "Usage: $0 {start|stop|restart}" - exit 1 -esac - -exit 0 \ No newline at end of file diff --git a/conf/etc/init.d/S90hostapd b/conf/etc/init.d/S90hostapd index e69de29..2e2a8a7 100644 --- a/conf/etc/init.d/S90hostapd +++ b/conf/etc/init.d/S90hostapd @@ -0,0 +1,23 @@ +#!/bin/sh + +case "$1" in + start) + printf "Starting hostapd: " + start-stop-daemon -S -x /usr/sbin/hostapd -- -B /etc/hostapd.conf + [ $? = 0 ] && echo "OK" || echo "FAIL" + ;; + stop) + printf "Stopping hostapd: " + start-stop-daemon -K -q -x /usr/sbin/hostapd + [ $? = 0 ] && echo "OK" || echo "FAIL" + ;; + restart|reload) + $0 stop + $0 start + ;; + *) + echo "Usage: $0 {start|stop|restart}" + exit 1 +esac + +exit 0 \ No newline at end of file