Here's a hack for the init.d script. I am not setting the patch tag
because it's a hack:

--- /etc/init.d/nstxd 2005-04-29 11:10:02.000000000 +0200
+++ /tmp/nstxd  2006-11-13 13:58:36.000000000 +0100
@@ -34,8 +34,13 @@
  start-stop-daemon --start -b -m --quiet --pidfile /var/run/$NAME.pid \
    --exec $DAEMON -- $NSTX_OPTIONS $NSTX_DOMAIN 
  sleep 1;
+ if [ -x "$(command -v ip 2>/dev/null)" ]; then
+   IF_TUN="$(sed -rne '$s,^[[:space:]]+([[:alnum:]]+):.*,\1,p' /proc/net/dev)"
+   IF=nstxd
+   ip link set $IF_TUN name $IF
+ fi
  if [ "$ifup_tun0" = "yes" ]; then
-     ifup tun0
+     ifup ${IF:-tun0}
  fi
  echo "$NAME."
   else



If you use this, please add a recommends on iproute.

-- 
 .''`.   martin f. krafft <[EMAIL PROTECTED]>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems

Attachment: signature.asc
Description: Digital signature (GPG/PGP)

Reply via email to