Updated Dride to Raspbian Stretch (#1)

* Stretch base system working W/O DRIDE

- Currently removed Dride edits/software to get base OS working

* Enabled Ether over USB

I slightly rearranged a few startups in stage2 to give us room for more expansion later.  Boot files update important to come prior to Dride software.
Stretch base system working W/O DRIDE

* Dride+Stretch working

- wifi works with specific Dride network
- usb0 interface also works if you need to debug/hack

All Dride network items have been separated into this step

* DrideOS gets Dride software added back in on Debian Stretch

- software base; testing commencing

* Added new dride partition, clean, updated README

- updated README to explain how this has been modified vs. upstream
- removed and cleaned unused scripts
- added dride partition creation on startup (runonce)
- drideOS conditional renamed to dride-plus

* Use the /dride path and provide soft links during software installation

- updated README
This commit is contained in:
Mark
2018-02-11 10:34:42 +02:00
committed by Yossi Neiman
parent 70fb0a72b8
commit 23b2c929a2
26 changed files with 602 additions and 486 deletions
@@ -1,42 +0,0 @@
#! /bin/sh
# /etc/init.d/dride-core
### BEGIN INIT INFO
# Provides: dride-core
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: will run the main dride-core process
# Description:
### END INIT INFO
case "$1" in
start)
echo "Starting dride-core"
# run application you want to start
sudo python /home/Cardigan/mainPi.py &
# run gps daemon
sudo python /home/Cardigan/daemons/gps/helper.py &
# run button / bluetooth daemon
sudo python /home/Cardigan/daemons/bluetooth/initPin.py &
sleep 5 && sudo BLENO_DEVICE_NAME="dride" node /home/Cardigan/daemons/bluetooth/main.js &
;;
stop)
echo "Stopping dride-core"
# kill application you want to stop
killall python
;;
*)
echo "Usage: /etc/init.d/dride-core{start|stop}"
exit 1
;;
esac
exit 0
@@ -1,42 +0,0 @@
#! /bin/sh
# /etc/init.d/dride-core
### BEGIN INIT INFO
# Provides: dride-core
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: will run the main dride-core process
# Description:
### END INIT INFO
case "$1" in
start)
echo "Starting dride-core"
# run application you want to start
sudo python /home/Cardigan/mainPiZero.py &
# run gps daemon
sudo python /home/Cardigan/daemons/gps/helper.py &
# run button / bluetooth daemon
sudo python /home/Cardigan/daemons/bluetooth/initPin.py &
sleep 5 && sudo BLENO_DEVICE_NAME="dride" node /home/Cardigan/daemons/bluetooth/main.js &
;;
stop)
echo "Stopping dride-core"
# kill application you want to stop
killall python
;;
*)
echo "Usage: /etc/init.d/dride-core{start|stop}"
exit 1
;;
esac
exit 0
@@ -1,31 +0,0 @@
#! /bin/sh
# /etc/init.d/dride-ws
### BEGIN INIT INFO
# Provides: dride-ws
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: will run the dride web server on startup
# Description: AKA dride-ws
### END INIT INFO
case "$1" in
start)
echo "Starting dride-ws"
# run node-express server
sudo node /home/Cardigan/dride-ws/server/app.js &
;;
stop)
echo "Stopping dride-ws"
# kill application you want to stop
killall node
;;
*)
echo "Usage: /etc/init.d/dride-ws{start|stop}"
exit 1
;;
esac
exit 0
@@ -1,18 +0,0 @@
#! /bin/sh
### BEGIN INIT INFO
# Provides: drideOS-resize
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: will resize the file system & reboot
# Description:
### END INIT INFO
echo "dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait" > /boot/cmdline.txt
# Delete the script
rm $0
# reboot
sudo reboot