Package: tinc Version: 1.1~pre11-1 Severity: normal Hello,
I'm using tinc through the ifupdown hooks, but the if-pre-up hook fails with dash: $ sudo ifup -v mynet Configuring interface mynet=mynet (inet) run-parts --exit-on-error --verbose /etc/network/if-pre-up.d run-parts: executing /etc/network/if-pre-up.d/bridge run-parts: executing /etc/network/if-pre-up.d/ethtool run-parts: executing /etc/network/if-pre-up.d/hostap-utils run-parts: executing /etc/network/if-pre-up.d/hostapd run-parts: executing /etc/network/if-pre-up.d/tinc + [ -z mynet ] + . /etc/default/tinc run-parts: /etc/network/if-pre-up.d/tinc exited with return code 1 Failed to bring up mynet. It seems adding some useless command in /etc/default/tinc, such as date(1), is a work-around. Changing #!/bin/sh to #!/bin/bash also works. Thanks, Yixuan -- System Information: Debian Release: 8.0 APT prefers unstable APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages tinc depends on: ii libc6 2.19-14 ii liblzo2-2 2.08-1.2 ii libncurses5 5.9+20140913-1 ii libreadline6 6.3-8+b3 ii libssl1.0.0 1.0.1k-1 ii libtinfo5 5.9+20140913-1 ii zlib1g 1:1.2.8.dfsg-2+b1 tinc recommends no packages. tinc suggests no packages. -- Configuration Files: (added set -x for debugging) /etc/network/if-pre-up.d/tinc changed: set -e set -x [ -z "$IF_TINC_NET" ] && exit 0 . /etc/default/tinc setlimits() { while [ $# -gt 0 ]; do parm=$1 ; shift if [ -n "$1" -a "${1#-}" = "$1" ]; then value=$1 ; shift ulimit $parm $value else ulimit $parm fi done } test -n "$LIMITS" && setlimits $LIMITS [ -n "$IF_TINC_CONFIG" ] && EXTRA="$EXTRA -c $IF_TINC_CONFIG" [ -n "$IF_TINC_DEBUG" ] && EXTRA="$EXTRA -d$IF_TINC_DEBUG" [ -n "$IF_TINC_MLOCK" ] && EXTRA="$EXTRA --mlock" [ -n "$IF_TINC_LOGFILE" ] && EXTRA="$EXTRA --logfile=$IF_TINC_LOGFILE" [ -n "$IF_TINC_CHROOT" ] && EXTRA="$EXTRA --chroot" [ -n "$IF_TINC_USER" ] && EXTRA="$EXTRA --user=$IF_TINC_USER" /usr/sbin/tincd -n "$IF_TINC_NET" -o "Interface=$IFACE" $EXTRA sleep 0.1 i=0; while [ ! -f "/var/run/tinc.$IF_TINC_NET.pid" ] ; do if [ $i = '30' ] ; then echo 'Failed to start tinc daemon!' exit 1 fi sleep 0.1 i=$(($i+1)) done exit 0 -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org