We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55e70b1 commit 13667daCopy full SHA for 13667da
src/chroot_script
@@ -82,6 +82,14 @@ sed -i 's/#autologin-user=.*/autologin-user=pi/g' /etc/lightdm/lightdm.conf
82
83
#set up x11vnc
84
sudo -u pi /home/pi/scripts/setX11vncPass raspberry
85
+if [ ! -f /home/pi/.vnc/passwd ]; then
86
+ echo "/home/pi/.vnc/passwd was not created"
87
+ sudo -u pi /home/pi/scripts/setX11vncPass raspberry
88
+ if [ ! -f /home/pi/.vnc/passwd ]; then
89
+ echo "failed again"
90
+ exit 1
91
+ fi
92
+fi
93
94
#echo "sudo -u pi startx /home/pi/scripts/run_onepageos &" >> /etc/rc.local
95
#echo "(sleep 15 ; sudo -u pi /home/pi/scripts/fullscreen) &" >> /etc/rc.local
0 commit comments