Skip to content

Commit 0cc292d

Browse files
committed
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.
1 parent bbc0b07 commit 0cc292d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

piratebox/piratebox/init.d/piratebox_alt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ case "$1" in
149149
echo $?
150150

151151
if [ "$IPV6_ENABLE" = "yes" ] && [ "$IPV6_ADVERT" = "radvd" ] ; then
152+
# Ugly hack on PirateBox 1.1.x only
153+
if test -e "/usr/local/usr/sbin/radvd" && test ! -e "/usr/bin/radvd" ; then
154+
echo "Deploy ugly hack for radvd on PirateBox 1.1"
155+
ln -sf /usr/local/usr/sbin/radvd /usr/bin/radvd
156+
fi
152157
echo "Starting radvd..."
153158
start-stop-daemon -S -q -x /usr/bin/radvd -- -p $PIDFILE_RADVD -C $CONF_RADVD
154159
echo $?

0 commit comments

Comments
 (0)