mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 21:26:36 +00:00
Convert all os_ variables to uppercase
This commit is contained in:
parent
014684880c
commit
f7a00cf1ff
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user