Skip to content

Commit

Permalink
fix: fix startup error
Browse files Browse the repository at this point in the history
  • Loading branch information
weearc committed Sep 16, 2019
1 parent 38b5063 commit bc73c1b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ scp CQU_drcom* -r [email protected]:/root/
5. 如果返回联网失败,可稍后再次检查网络连通情况

## CHANGE LOG
2019.09.16
- 修正了啓動腳本`99-drcom`中的錯誤

2019.09.14
- 修正了ESSID显示错误的问题
- 修正了WiFi开启后无SSID的问题
Expand Down
17 changes: 8 additions & 9 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -280,23 +280,21 @@ case $distro in
cp -p 99-drcom /etc/hotplug.d/iface/ ;;

"openwrt")
echo '#!/bin/sh /etc/rc.commmon
echo '#!/bin/sh /etc/rc.common
START=99
start() {
/usr/bin/drcom
(/usr/bin/drcom > /dev/null &)&
}
stop() {
pkill -9 python
kill -9 $(pidof python)
}
restart() {
/usr/bin/drcom
(/usr/bin/drcom > /dev/null &)&
}' > 99-drcom
chmod a+x 99-drcom
cp -p 99-drcom /etc/init.d
cd /etc/init.d
./99-drcom enable
./99-drcom start > /dev/null 2>&1
cd - ;;
mv 99-drcom /etc/init.d/.
/etc/init.d/99-drcom enable
;;
esac

echo "installing drcom to /usr/bin/drcom"
Expand Down Expand Up @@ -345,6 +343,7 @@ N|n|*)
esac

# Network Checking
(/usr/bin/drcom > /dev/null &)&
sh networkChecking.sh
echo "Network checking..."
sleep 10s
Expand Down

0 comments on commit bc73c1b

Please sign in to comment.