Skip to content

Commit 3a63ef4

Browse files
committed
server
1 parent 5ed8f3f commit 3a63ef4

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

sources/etc/init.d/randomWifi.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ mac="`sudo /sbin/ifconfig eth0 | grep 'ether ' | awk '{ print $2}'`"
3636
mac2="`echo "$mac" | sed 's/\://g'`"
3737
wlanssid="MK-"$mac2
3838

39-
## set lxsession autostart
40-
echo "@lxpanel --profile LXDE-pi" > /home/mk/.config/lxsession/LXDE-pi/autostart
41-
echo "@pcmanfm --desktop --profile LXDE-pi" >> /home/mk/.config/lxsession/LXDE-pi/autostart
42-
echo "@xscreensaver -no-splash" >> /home/mk/.config/lxsession/LXDE-pi/autostart
43-
echo "@point-rpi" >> /home/mk/.config/lxsession/LXDE-pi/autostart
44-
4539

4640
## set wlan ssid
4741
sudo sed -i "s/device_name=.*$/device_name=$wlanssid/g" /etc/wpa_supplicant/wpa_supplicant.conf
@@ -59,7 +53,6 @@ else
5953
sudo cp /etc/dhcpcd.conf.usb /etc/dhcpcd.conf
6054
sudo service dhcpcd restart
6155
sudo ifconfig wlan1 1.1.1.1
62-
echo "@/opt/lazycast/allnew.sh" >> /home/mk/.config/lxsession/LXDE-pi/autostart
6356
while [ -z $ipset ]; do
6457
ipset="`sudo ifconfig | grep -i 'inet 1.1.1.1' | awk '{print $2}'` "
6558
done

sources/etc/lightdm/lightdm.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ greeter-hide-users=false
116116
display-setup-script=/etc/init.d/start.sh
117117
#display-stopped-script=
118118
#greeter-setup-script=/etc/init.d/info.sh
119-
#session-setup-script=/sbin/loginscript.sh
119+
session-setup-script=/sbin/loginscript.sh
120120
#session-cleanup-script=
121121
#autologin-guest=false
122122
autologin-user=mk
1 KB
Binary file not shown.

sources/opt/lazycast/allnew.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
#!/bin/bash
22
pin="65100000"
33
cd /opt/lazycast
4+
### test if desktop manager is active
5+
test = 1
6+
while $test < 2; do
7+
test = `ps -aux | grep -i "pcmanfm --desktop --profile LXDE-pi" | wc -l`
8+
if [ $test < 2 ]; then
9+
pcmanfm --desktop --profile LXDE-pi &
10+
fi
11+
done
12+
413
while :
514
do
615
ipset="`sudo ifconfig | grep -i 'inet 192.168.173.1' | awk '{print $2}'`"

0 commit comments

Comments
 (0)