Fix permissions and CRLF
This commit is contained in:
parent
5e2b5059fc
commit
7a7a043b2f
40
conf/etc/init.d/S10cfgbin
Normal file → Executable file
40
conf/etc/init.d/S10cfgbin
Normal file → Executable file
@ -1,20 +1,20 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
printf "Starting cfgbin: "
|
printf "Starting cfgbin: "
|
||||||
/usr/sbin/cfgbin
|
/usr/sbin/cfgbin
|
||||||
test -f /etc/serial || exit 0
|
test -f /etc/serial || exit 0
|
||||||
test -f /etc/ssid || exit 0
|
test -f /etc/ssid || exit 0
|
||||||
test -f /etc/wpa || exit 0
|
test -f /etc/wpa || exit 0
|
||||||
$SSID=`cat /etc/ssid`
|
$SSID=`cat /etc/ssid`
|
||||||
$WPA=`cat /etc/wpa`
|
$WPA=`cat /etc/wpa`
|
||||||
sed -i "s/{{SSID}}/$SSID/g" /etc/hostapd.conf
|
sed -i "s/{{SSID}}/$SSID/g" /etc/hostapd.conf
|
||||||
sed -i "s/{{WPA}}/$WPA/g" /etc/hostapd.conf
|
sed -i "s/{{WPA}}/$WPA/g" /etc/hostapd.conf
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: $0 {start}"
|
echo "Usage: $0 {start}"
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user