mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
network/firewalld: Use /etc/default/ rather than /etc/sysconfig/
It's cosmetic but more in line with what the rest of Slackware might use... Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
e93e6d8d12
commit
799fd7e23b
3 changed files with 4 additions and 3 deletions
|
@ -25,7 +25,7 @@ preserve_perms() {
|
|||
config etc/dbus-1/system.d/FirewallD.conf.new
|
||||
config etc/firewall/applet.conf.new
|
||||
config etc/firewalld/firewalld.conf.new
|
||||
config etc/sysconfig/firewalld.new
|
||||
config etc/default/firewalld.new
|
||||
preserve_perms etc/rc.d/rc.FireWallD.new
|
||||
|
||||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
PRGNAM=firewalld
|
||||
VERSION=${VERSION:-0.4.4.5}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -89,6 +89,7 @@ mv $PKG/etc/dbus-1/system.d/FirewallD.conf $PKG/etc/dbus-1/system.d/FirewallD.co
|
|||
mv $PKG/etc/firewall/applet.conf $PKG/etc/firewall/applet.conf.new
|
||||
mv $PKG/etc/firewalld/firewalld.conf $PKG/etc/firewalld/firewalld.conf.new
|
||||
mv $PKG/etc/sysconfig/firewalld $PKG/etc/sysconfig/firewalld.new
|
||||
mv $PKG/etc/sysconfig $PKG/etc/default
|
||||
|
||||
mkdir -p $PKG/etc/rc.d
|
||||
cat $CWD/rc.FireWallD > $PKG/etc/rc.d/rc.FireWallD.new
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
# Start firewalld:
|
||||
firewalld_start() {
|
||||
[ -r /etc/sysconfig/firewalld ] && source /etc/sysconfig/firewalld
|
||||
[ -r /etc/default/firewalld ] && source /etc/default/firewalld
|
||||
echo -n "Starting FireWallD daemon: /usr/sbin/firewalld "
|
||||
/usr/sbin/firewalld $FIREWALLD_ARGS
|
||||
echo
|
||||
|
|
Loading…
Reference in a new issue