Don't delete init.d script in .sh update unless running Jessie.

#448.
pull/452/head
Christopher Young 2016-06-24 15:51:04 -04:00
rodzic d50748c23a
commit b611615dce
1 zmienionych plików z 8 dodań i 3 usunięć

Wyświetl plik

@ -4,9 +4,14 @@ cp -f libimu.so /usr/lib/libimu.so
# Startup script.
rm -f /etc/init.d/stratux
rm -f /etc/rc2.d/S01stratux
rm -f /etc/rc6.d/K01stratux
RASPBIAN_VERSION=`cat /etc/debian_version`
if [ "$RASPBIAN_VERSION" == "8.0" ] ; then
# Install the systemd startup scripts in any case, even if they won't be used. If this is being run, then the old init.d script
# is still intact and we just leave it. If running Wheezy, then remove the old init.d script.
rm -f /etc/init.d/stratux
rm -f /etc/rc2.d/S01stratux
rm -f /etc/rc6.d/K01stratux
fi
cp -f __lib__systemd__system__stratux.service /lib/systemd/system/stratux.service
cp -f __root__stratux-pre-start.sh /root/stratux-pre-start.sh