Skip to content

Commit

Permalink
new network management
Browse files Browse the repository at this point in the history
  • Loading branch information
codekoch committed May 4, 2019
1 parent 9b37e6f commit f99cf96
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sources/etc/init.d/start.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
#!/bin/sh
### wait for all network functions
check=0
while [ $check -lt 3 ]
do
active1=`ps -aux | grep -i "dhcpcd" | wc -l`
active2=`ps -aux | grep -i "hostapd" | wc -l`
active3=`ps -aux | grep -i "dnsmasq" | wc -l`
check=$(($active1+$active2+$active3-3))
done
sudo /sbin/restoreMkProfile.sh
### optional
#sudo service smbd stop
#sudo service nmbd stop
#/sbin/blockAtStartup.sh
Expand All @@ -8,3 +18,4 @@ sudo /etc/init.d/info.sh
sudo rm /tmp/startFinished.tmp
echo "1" > /tmp/startFinished.tmp
sudo chmod 777 /tmp/startFinished.tmp
sudo chown mk:mk /tmp/startFinished.tmp
4 changes: 4 additions & 0 deletions sources/opt/lazycast/allnew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ while ! [ -e /tmp/startFinished.tmp ]
do
echo "waiting for start.sh to be finished"
done

while [ -e /tmp/startFinished.tmp ]
do
rm /tmp/startFinished.tmp
done
### test if desktop manager is active
test=1
while [ $test -lt 2 ]
Expand Down

0 comments on commit f99cf96

Please sign in to comment.