mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-24 11:41:26 +02:00
Correct installation of /sbin/ifup-local and /sbin/ifdown-local
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
9a4df0fac8
commit
b27e5f4378
@ -391,12 +391,24 @@ case $HOST in
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
redhat)
|
redhat)
|
||||||
if [ -f ${DESTDIR}${SBINDIR}/ifup-local -o -f ${DESTDIR}${SBINDIR}/ifdown-local ]; then
|
if [ -z "$DESTDIR" ]; then
|
||||||
|
install_local=
|
||||||
|
|
||||||
|
if [ -f ${SBINDIR}/ifup-local -o -f ${SBINDIR}/ifdown-local ]; then
|
||||||
|
if ! fgrep -q Shorewall-based ${SBINDIR}/ifup-local || ! fgrep -q Shorewall-based ${SBINDIR}/ifdown-local; then
|
||||||
echo "WARNING: ${SBINDIR}/ifup-local and/or ${SBINDIR}/ifdown-local already exist; up/down events will not be handled"
|
echo "WARNING: ${SBINDIR}/ifup-local and/or ${SBINDIR}/ifdown-local already exist; up/down events will not be handled"
|
||||||
elif [ -z "$DESTDIR" ]; then
|
else
|
||||||
|
install_local=Yes
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
install_local=Yes
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "$install_local" ]; then
|
||||||
install_file ifupdown ${DESTDIR}${SBINDIR}/ifup-local 0544
|
install_file ifupdown ${DESTDIR}${SBINDIR}/ifup-local 0544
|
||||||
install_file ifupdown ${DESTDIR}${SBINDIR}/ifdown-local 0544
|
install_file ifupdown ${DESTDIR}${SBINDIR}/ifdown-local 0544
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user