File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh
2+ # ## wait for all network functions
3+ check=0
4+ while [ $check -lt 3 ]
5+ do
6+ active1=` ps -aux | grep -i " dhcpcd" | wc -l`
7+ active2=` ps -aux | grep -i " hostapd" | wc -l`
8+ active3=` ps -aux | grep -i " dnsmasq" | wc -l`
9+ check=$(( $active1 + $active2 + $active3 - 3 ))
10+ done
211sudo /sbin/restoreMkProfile.sh
12+ # ## optional
313# sudo service smbd stop
414# sudo service nmbd stop
515# /sbin/blockAtStartup.sh
@@ -8,3 +18,4 @@ sudo /etc/init.d/info.sh
818sudo rm /tmp/startFinished.tmp
919echo " 1" > /tmp/startFinished.tmp
1020sudo chmod 777 /tmp/startFinished.tmp
21+ sudo chown mk:mk /tmp/startFinished.tmp
Original file line number Diff line number Diff line change @@ -6,7 +6,11 @@ while ! [ -e /tmp/startFinished.tmp ]
66do
77echo " waiting for start.sh to be finished"
88done
9+
10+ while [ -e /tmp/startFinished.tmp ]
11+ do
912rm /tmp/startFinished.tmp
13+ done
1014# ## test if desktop manager is active
1115test=1
1216while [ $test -lt 2 ]
You can’t perform that action at this time.
0 commit comments