aboutsummaryrefslogtreecommitdiffstats
path: root/main/awall/awall-init
blob: a5d5dc7a55890f38aa85d68af7f61cedd5102417 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e

# Service setup script for Alpine Wall on Alpine Linux
# Copyright (C) 2018-2019 Kaarle Ritvanen

SRV=$1

set_param() {
	sed -Ei "s/^($1=).*\$/\\1$2/" /etc/conf.d/$SRV
}

set_param SAVE_ON_STOP no
if [ "$FORWARD" != no ]; then
	set_param IPFORWARD yes
fi

rc-update add $SRV
service $SRV start