diff --git a/board/common/overlay/etc/init.d/S61proftpd b/board/common/overlay/etc/init.d/S61proftpd index 92ad723780..2d50405cc1 100755 --- a/board/common/overlay/etc/init.d/S61proftpd +++ b/board/common/overlay/etc/init.d/S61proftpd @@ -2,10 +2,10 @@ test -f /etc/proftpd.conf || exit 0 -test -n "$os_version" || source /etc/init.d/base -test -n "$os_debug" || source /etc/init.d/conf +test -n "$OS_VERSION" || source /etc/init.d/base +test -n "$OS_DEBUG" || source /etc/init.d/conf -test "$os_networkless" == "true" && exit 0 +test "$OS_NETWORKLESS" == "true" && exit 0 start() { msg_begin "Starting proftpd" diff --git a/board/common/overlay/etc/init.d/S62smb b/board/common/overlay/etc/init.d/S62smb index 061ee3cb35..733a39a0d2 100755 --- a/board/common/overlay/etc/init.d/S62smb +++ b/board/common/overlay/etc/init.d/S62smb @@ -2,10 +2,10 @@ test -f /etc/samba/smb.conf || exit 0 -test -n "$os_version" || source /etc/init.d/base -test -n "$os_debug" || source /etc/init.d/conf +test -n "$OS_VERSION" || source /etc/init.d/base +test -n "$OS_DEBUG" || source /etc/init.d/conf -test "$os_networkless" == "true" && exit 0 +test "$OS_NETWORKLESS" == "true" && exit 0 start() { mkdir -p /var/log/samba diff --git a/board/common/overlay/etc/init.d/S85motioneye b/board/common/overlay/etc/init.d/S85motioneye index 0c9a09071e..f1bf1363f5 100755 --- a/board/common/overlay/etc/init.d/S85motioneye +++ b/board/common/overlay/etc/init.d/S85motioneye @@ -23,7 +23,7 @@ test -f "$conf" || exit 0 test -r $watch_conf && source $watch_conf -test -n "$os_version" || source /etc/init.d/base +test -n "$OS_VERSION" || source /etc/init.d/base opts=$(cat "$conf" | while read line; do echo "--$line"; done) port=$(echo "$opts" | grep -oE 'port [[:digit:]]+' | cut -d ' ' -f 2) diff --git a/board/raspberrypi/overlay/etc/init.d/S84streameye b/board/raspberrypi/overlay/etc/init.d/S84streameye index 81e2e2c896..39904572c5 100755 --- a/board/raspberrypi/overlay/etc/init.d/S84streameye +++ b/board/raspberrypi/overlay/etc/init.d/S84streameye @@ -2,7 +2,7 @@ motioneye_conf_dir="/data/etc/" -test -n "$os_version" || source /etc/init.d/base +test -n "$OS_VERSION" || source /etc/init.d/base enabled() { test $(ls -1 $motioneye_conf_dir/thread-*.conf 2>/dev/null| wc -l) == 1 || return 1 diff --git a/board/raspberrypi2/overlay/etc/init.d/S84streameye b/board/raspberrypi2/overlay/etc/init.d/S84streameye index 81e2e2c896..39904572c5 100755 --- a/board/raspberrypi2/overlay/etc/init.d/S84streameye +++ b/board/raspberrypi2/overlay/etc/init.d/S84streameye @@ -2,7 +2,7 @@ motioneye_conf_dir="/data/etc/" -test -n "$os_version" || source /etc/init.d/base +test -n "$OS_VERSION" || source /etc/init.d/base enabled() { test $(ls -1 $motioneye_conf_dir/thread-*.conf 2>/dev/null| wc -l) == 1 || return 1 diff --git a/board/raspberrypi3/overlay/etc/init.d/S84streameye b/board/raspberrypi3/overlay/etc/init.d/S84streameye index 81e2e2c896..39904572c5 100755 --- a/board/raspberrypi3/overlay/etc/init.d/S84streameye +++ b/board/raspberrypi3/overlay/etc/init.d/S84streameye @@ -2,7 +2,7 @@ motioneye_conf_dir="/data/etc/" -test -n "$os_version" || source /etc/init.d/base +test -n "$OS_VERSION" || source /etc/init.d/base enabled() { test $(ls -1 $motioneye_conf_dir/thread-*.conf 2>/dev/null| wc -l) == 1 || return 1