forked from extern/shorewall_code
Fixes for revised file layout
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
e627e0ea76
commit
a440a68f7f
@ -239,8 +239,8 @@ else
|
||||
mkdir -p ${PREFIX}/etc/sysconfig
|
||||
|
||||
if [ -n "$SUSE" ]; then
|
||||
mkdir -p ${PREFIX}/sysconfig/network/if-up.d
|
||||
mkdir -p ${PREFIX}/sysconfig/network/if-down.d
|
||||
mkdir -p ${PREFIX}/etc/sysconfig/network/if-up.d
|
||||
mkdir -p ${PREFIX}/etc/sysconfig/network/if-down.d
|
||||
else
|
||||
mkdir -p ${PREFIX}/etc/NetworkManager/dispatcher.d
|
||||
fi
|
||||
@ -267,8 +267,8 @@ if [ -n "$DEBIAN" ]; then
|
||||
install_file ifupdown.sh ${PREFIX}/etc/network/if-up.d/shorewall 0544
|
||||
install_file ifupdown.sh ${PREFIX}/etc/network/if-post-down.d/shorewall 0544
|
||||
elif [ -n "$SUSE" ]; then
|
||||
install_file ifupdown.sh ${PREFIX}/etc/sysconfig/network/if-up.d/shorewall 0744
|
||||
install_file ifupdown.sh ${PREFIX}/etc/sysconfig/network/if-down.d/shorewall 0744
|
||||
install_file ifupdown.sh ${PREFIX}/etc/sysconfig/network/if-up.d/shorewall 0544
|
||||
install_file ifupdown.sh ${PREFIX}/etc/sysconfig/network/if-down.d/shorewall 5744
|
||||
elif [ -n "$REDHAT" ]; then
|
||||
if [ -f ${PREFIX}/sbin/ifup-local -o -f ${PREFIX}/sbin/ifdown-local ]; then
|
||||
echo "WARNING: /sbin/ifup-local and/or /sbin/ifdown-local already exist; up/down events will not be handled"
|
||||
|
@ -50,18 +50,18 @@ if [ $1 -eq 1 ]; then
|
||||
fi
|
||||
|
||||
if [ -f /etc/SuSE-release ]; then
|
||||
cp -af /usr/share/shorewall-init/ifupdown.sh /etc/sysconfig/network/if-up.d/shorewall
|
||||
cp -af /usr/share/shorewall-init/ifupdown.sh /etc/sysconfig/network/if-down.d/shorewall
|
||||
cp -af /usr/share/shorewall-init/ifupdown /etc/sysconfig/network/if-up.d/shorewall
|
||||
cp -af /usr/share/shorewall-init/ifupdown /etc/sysconfig/network/if-down.d/shorewall
|
||||
else
|
||||
if [ -f /sbin/ifup-local -o -f /sbin/ifdown-local ]; then
|
||||
echo "WARNING: /sbin/ifup-local and/or /sbin/ifdown-local already exist; ifup/ifdown events will not be handled" >&2
|
||||
else
|
||||
cp -a /usr/share/shorewall-init/ifupdown.sh /sbin/ifup-local
|
||||
cp -a /usr/share/shorewall-init/ifupdown.sh /sbin/ifdown-local
|
||||
cp -a /usr/share/shorewall-init/ifupdown /sbin/ifup-local
|
||||
cp -a /usr/share/shorewall-init/ifupdown /sbin/ifdown-local
|
||||
fi
|
||||
|
||||
if [ -d /etc/NetworkManager/dispatcher.d/ ]; then
|
||||
cp -af /usr/share/shorewall-init/ifupdown.sh /etc/NetworkManager/dispatcher.d/01-shorewall
|
||||
cp -af /usr/share/shorewall-init/ifupdown /etc/NetworkManager/dispatcher.d/01-shorewall
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
@ -92,7 +92,7 @@ fi
|
||||
%attr(0755,root,root) %dir /usr/share/shorewall-init
|
||||
|
||||
%attr(0644,root,root) /usr/share/shorewall-init/version
|
||||
%attr(0544,root,root) /usr/share/shorewall-init/ifupdown.sh
|
||||
%attr(0544,root,root) /usr/share/shorewall-init/ifupdown
|
||||
|
||||
%doc COPYING changelog.txt releasenotes.txt
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user