浏览代码

stderr redirects properly now, kiosk alternative setup

* assumes window manager doesn't automatically start
* still needs user `pi` to be auto logged in (opt 1 in raspi-config)
abram 5 年之前
父节点
当前提交
c6abdd9511
共有 1 个文件被更改,包括 11 次插入6 次删除
  1. 11 6
      busunit/rootfs/etc/rc.local

+ 11 - 6
busunit/rootfs/etc/rc.local

@@ -20,23 +20,28 @@
 # along with PopuFare.  If not, see <https://www.gnu.org/licenses/>.
 #
 
-/home/bus/bin/setup-serial.py 2>&1 >> /tmp/init.log
+/home/bus/bin/setup-serial.py >> /tmp/init.log 2>&1
 sleep 2
-/home/bus/bin/get_net_ids.sh 2>&1 >> /tmp/init.log
+/home/bus/bin/get_net_ids.sh >> /tmp/init.log 2>&1
 sleep 2
 
 ip link set eth0 down
 
-/home/bus/bin/connection_tether.sh 2>&1 >> /tmp/tether.log &
+/home/bus/bin/connection_tether.sh >> /tmp/tether.log 2>&1 &
 sleep 2
-/home/bus/bin/update_loop.sh 2>&1 >> /tmp/run.log &
+/home/bus/bin/update_loop.sh >> /tmp/run.log 2>&1 &
 sleep 2
 
-/home/bus/bin/reset-gps 2>&1 >> /tmp/gps.log &
+/home/bus/bin/reset-gps >> /tmp/gps.log 2>&1 &
 sleep 2
 
 ## If using HDMI sound, uncomment the following two lines...
-vcgencmd force_audio hdmi 1 2>&1 >> /tmp/audio.log &
+##
+vcgencmd force_audio hdmi 1 >> /tmp/audio.log 2>&1 &
 sleep 1
 
+#xinit /home/bus/bin/start-kiosk.sh >> /tmp/kiosk.log 2>&1 &
+#su -l pi -c /usr/bin/startx /home/bus/bin/start-kiosk.sh >> /tmp/kiosk.log 2>&1 &
+( sleep 5 && usr/bin/startx /home/bus/bin/start-kiosk.sh >> /tmp/kiosk.log 2>&1 ) &
+
 exit 0