Fix permissions and CRLF
这个提交包含在:
父节点
5e2b5059fc
当前提交
7a7a043b2f
40
conf/etc/init.d/S10cfgbin
普通文件 -> 可执行文件
40
conf/etc/init.d/S10cfgbin
普通文件 -> 可执行文件
@ -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
|
||||
|
正在加载...
在新工单中引用
屏蔽一个用户