Fix for radvd startup on OpenWrt

We are adding a ugly hack for OpenWrt based Piratebox. The clean
solution is to add another extendRoot package (extendRoot-radvd), but
after 1.1 the major OpenWrt release will change and this new package is
obsolete.
We only add this ugly hack, which will be removed on development tree
later again.
This commit is contained in:
Matthias Strubel 2018-02-23 11:46:23 +01:00
parent bbc0b074a6
commit 0cc292dddd
1 changed files with 5 additions and 0 deletions

View File

@ -149,6 +149,11 @@ case "$1" in
echo $?
if [ "$IPV6_ENABLE" = "yes" ] && [ "$IPV6_ADVERT" = "radvd" ] ; then
# Ugly hack on PirateBox 1.1.x only
if test -e "/usr/local/usr/sbin/radvd" && test ! -e "/usr/bin/radvd" ; then
echo "Deploy ugly hack for radvd on PirateBox 1.1"
ln -sf /usr/local/usr/sbin/radvd /usr/bin/radvd
fi
echo "Starting radvd..."
start-stop-daemon -S -q -x /usr/bin/radvd -- -p $PIDFILE_RADVD -C $CONF_RADVD
echo $?