|
|
@@ -123,7 +123,7 @@ read adddeps
|
|
|
|
|
|
if [[ "$adddeps" =~ ^[yY]?$ ]]; then
|
|
|
|
|
|
- deps="espeak mplayer git ppp ppp-dev sox alsa-utils unclutter fbi xinput-calibrator ffmpeg jq matchbox-window-manager libi2c-dev socat "
|
|
|
+ deps="espeak mplayer git ppp ppp-dev sox alsa-utils unclutter fbi xinput-calibrator ffmpeg jq matchbox-window-manager libi2c-dev socat figlet vim "
|
|
|
|
|
|
echo ""
|
|
|
echo " Installing: $deps"
|
|
|
@@ -261,6 +261,28 @@ sudo mkdir -p /home/bus/config/server
|
|
|
|
|
|
echo ""
|
|
|
|
|
|
+##### i2c serial passthrough setup
|
|
|
+#####
|
|
|
+
|
|
|
+echo -n "Setup i2c-serial passthrough? [Y/n]: "
|
|
|
+read i2cpass
|
|
|
+
|
|
|
+if [[ "$i2cpass" =~ ^[yY]?$ ]] ; then
|
|
|
+
|
|
|
+ echo " compiling and installing ichthyic-passthrough"
|
|
|
+ sudo bash -c " cd /home/bus/popufare/busunit/PIU/shim ; ./cmp.sh ; cp ./ichthyic-passthrough /home/bus/bin"
|
|
|
+
|
|
|
+ echo " installing popufare_monitor script"
|
|
|
+ sudo bash -c " cp -f /home/bus/popufare/busunit/scripts/popufare_monitor /home/bus/bin/popufare_monitor"
|
|
|
+
|
|
|
+ echo " enabling ichthyic (touch /home/bus/config/popufare.ichthyic)"
|
|
|
+ sudo bash -c " touch /home/bus/config/popufare.ichthyic ; chown bus:bus /home/bus/config/popufare.ichthyic"
|
|
|
+
|
|
|
+ echo " setting root crontab to call popufare_monitor (using $repolocation/busunit/scripts/crontab.root)"
|
|
|
+ sudo bash -c " crontab $repolocation/busunit/scripts/crontab.root "
|
|
|
+
|
|
|
+fi
|
|
|
+
|
|
|
##### paddle setup
|
|
|
#####
|
|
|
|
|
|
@@ -628,6 +650,21 @@ fi
|
|
|
|
|
|
echo ""
|
|
|
|
|
|
+##### setup pi user welcome
|
|
|
+#####
|
|
|
+
|
|
|
+echo -n "Setup pi ser 'welcome' text splash screen? [Y/n]: "
|
|
|
+read textsplash
|
|
|
+
|
|
|
+if [[ "$textsplash" =~ ^[yY]?$ ]] ; then
|
|
|
+
|
|
|
+ sudo mkdir -p /home/pi/bin
|
|
|
+ sudo cp /home/bus/popufare/busunit/scripts/welcome_to_popufare.sh /home/pi/bin/welcome_to_popufare.sh
|
|
|
+ sudo chown -R pi:pi /home/pi/bin
|
|
|
+ sudo echo "/home/pi/bin/welcome_to_popufare.sh" >> /home/pi/.bashrc
|
|
|
+
|
|
|
+fi
|
|
|
+
|
|
|
|
|
|
##### setup legacy data directories
|
|
|
#####
|