Fix Crlf, again.......
This commit is contained in:
parent
6f99b444a6
commit
487f9ec9b9
@ -1,20 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "Starting cfgbin: "
|
||||
/usr/sbin/cfgbin
|
||||
test -f /etc/serial || exit 0
|
||||
test -f /etc/ssid || exit 0
|
||||
test -f /etc/wpa || exit 0
|
||||
SSID=`cat /etc/ssid`
|
||||
WPA=`cat /etc/wpa`
|
||||
sed -i "s/{{SSID}}/$SSID/g" /etc/hostapd.conf
|
||||
sed -i "s/{{WPA}}/$WPA/g" /etc/hostapd.conf
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit 0
|
||||
#!/bin/sh
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "Starting cfgbin: "
|
||||
/usr/sbin/cfgbin
|
||||
test -f /etc/serial || exit 0
|
||||
test -f /etc/ssid || exit 0
|
||||
test -f /etc/wpa || exit 0
|
||||
SSID=`cat /etc/ssid`
|
||||
WPA=`cat /etc/wpa`
|
||||
sed -i "s/{{SSID}}/$SSID/g" /etc/hostapd.conf
|
||||
sed -i "s/{{WPA}}/$WPA/g" /etc/hostapd.conf
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user