mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
S43firewall: use prepare_conf
This commit is contained in:
parent
6f65d633b9
commit
ef11ee161a
@ -4,18 +4,11 @@ sys_conf="/etc/firewall.sh"
|
|||||||
boot_conf="/boot/firewall.sh"
|
boot_conf="/boot/firewall.sh"
|
||||||
conf="/data/etc/firewall.sh"
|
conf="/data/etc/firewall.sh"
|
||||||
|
|
||||||
if ! [[ -f $conf ]]; then
|
|
||||||
if [[ -f $boot_conf ]]; then
|
|
||||||
cp $boot_conf $conf
|
|
||||||
elif [[ -f $sys_conf ]]; then
|
|
||||||
cp $sys_conf $conf
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
test -f $conf || exit 0
|
|
||||||
|
|
||||||
test -n "$os_version" || source /etc/init.d/base
|
test -n "$os_version" || source /etc/init.d/base
|
||||||
|
|
||||||
|
prepare_conf $conf $sys_conf $boot_conf
|
||||||
|
test -f $conf || exit 0
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
msg_begin "Starting firewall"
|
msg_begin "Starting firewall"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user