S43firewall: use prepare_conf

This commit is contained in:
Calin Crisan 2019-01-11 14:04:20 +02:00
parent 6f65d633b9
commit ef11ee161a

View File

@ -4,18 +4,11 @@ sys_conf="/etc/firewall.sh"
boot_conf="/boot/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
prepare_conf $conf $sys_conf $boot_conf
test -f $conf || exit 0
start() {
msg_begin "Starting firewall"