mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-08 00:34:04 +01:00
Add Shorewall-init installer support for OpenWRT
- Supply sysconfig files for all products Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
c9f57ad9c9
commit
89d91d37a1
@ -18,7 +18,7 @@ AUXINITSOURCE=
|
|||||||
AUXINITFILE=
|
AUXINITFILE=
|
||||||
SERVICEDIR=
|
SERVICEDIR=
|
||||||
SERVICEFILE=
|
SERVICEFILE=
|
||||||
SYSCONFFILE=default.openwrt
|
SYSCONFFILE=sysconfig
|
||||||
SYSCONFDIR=${CONFDIR}/sysconfig
|
SYSCONFDIR=${CONFDIR}/sysconfig
|
||||||
SPARSE=
|
SPARSE=
|
||||||
ANNOTATED=
|
ANNOTATED=
|
||||||
|
@ -230,6 +230,8 @@ if [ -z "$BUILD" ]; then
|
|||||||
BUILD=slackware
|
BUILD=slackware
|
||||||
elif [ -f /etc/arch-release ] ; then
|
elif [ -f /etc/arch-release ] ; then
|
||||||
BUILD=archlinux
|
BUILD=archlinux
|
||||||
|
elif [ -f ${CONFDIR}/openwrt_release ]; then
|
||||||
|
BUILD=openwrt
|
||||||
else
|
else
|
||||||
BUILD=linux
|
BUILD=linux
|
||||||
fi
|
fi
|
||||||
@ -277,6 +279,9 @@ case "$HOST" in
|
|||||||
suse)
|
suse)
|
||||||
echo "Installing SuSE-specific configuration..."
|
echo "Installing SuSE-specific configuration..."
|
||||||
;;
|
;;
|
||||||
|
openwrt)
|
||||||
|
echo "Installing OpenWRT-specific configuration..."
|
||||||
|
;;
|
||||||
linux)
|
linux)
|
||||||
echo "ERROR: Shorewall-init is not supported on this system" >&2
|
echo "ERROR: Shorewall-init is not supported on this system" >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -539,6 +544,13 @@ if [ -z "$DESTDIR" ]; then
|
|||||||
else
|
else
|
||||||
cant_autostart
|
cant_autostart
|
||||||
fi
|
fi
|
||||||
|
elif [ $HOST = openwrt -a -f ${CONFDIR}/rc.common ]; then
|
||||||
|
/etc/init.d/shorewall-inir enable
|
||||||
|
if /etc/init.d/shorewall-init enabled; then
|
||||||
|
echo "Shorrewall Init will start automatically at boot"
|
||||||
|
else
|
||||||
|
cant_autostart
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
cant_autostart
|
cant_autostart
|
||||||
fi
|
fi
|
||||||
|
25
Shorewall6-lite/sysconfig
Normal file
25
Shorewall6-lite/sysconfig
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
# sysV init file script configuration(/etc/sysconfdir/shorewall-lite)
|
||||||
|
|
||||||
|
# startup option(default "-vvv")
|
||||||
|
OPTIONS=
|
||||||
|
|
||||||
|
# change default start run level(if none empty; /etc/init.d/shorewall-lite enable)
|
||||||
|
START=50
|
||||||
|
|
||||||
|
# change default stop run level(if none empty; /etc/init.d/shorewall-lite enable)
|
||||||
|
STOP=
|
||||||
|
|
||||||
|
# option to pass when shorewall start is executed
|
||||||
|
STARTOPTIONS=
|
||||||
|
|
||||||
|
# option to pass when shorewall restart is executed
|
||||||
|
RESTARTOPTIONS=
|
||||||
|
|
||||||
|
# option to pass when shorewall reload is executed
|
||||||
|
RELOADOPTIONS=
|
||||||
|
|
||||||
|
# option to pass when shorewall stop is executed
|
||||||
|
STOPOPTIONS=
|
||||||
|
|
||||||
|
# option to pass when shorewall status is executed
|
||||||
|
STATUSOPTIONS=
|
25
Shorewall6/sysconfig
Normal file
25
Shorewall6/sysconfig
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
# sysV init file script configuration(/etc/sysconfdir/shorewall-lite)
|
||||||
|
|
||||||
|
# startup option(default "-vvv")
|
||||||
|
OPTIONS=
|
||||||
|
|
||||||
|
# change default start run level(if none empty; /etc/init.d/shorewall-lite enable)
|
||||||
|
START=50
|
||||||
|
|
||||||
|
# change default stop run level(if none empty; /etc/init.d/shorewall-lite enable)
|
||||||
|
STOP=
|
||||||
|
|
||||||
|
# option to pass when shorewall start is executed
|
||||||
|
STARTOPTIONS=
|
||||||
|
|
||||||
|
# option to pass when shorewall restart is executed
|
||||||
|
RESTARTOPTIONS=
|
||||||
|
|
||||||
|
# option to pass when shorewall reload is executed
|
||||||
|
RELOADOPTIONS=
|
||||||
|
|
||||||
|
# option to pass when shorewall stop is executed
|
||||||
|
STOPOPTIONS=
|
||||||
|
|
||||||
|
# option to pass when shorewall status is executed
|
||||||
|
STATUSOPTIONS=
|
Loading…
Reference in New Issue
Block a user