Package: tipcutils Version: 1.0.4-1 Followup-For: Bug #432768
Here is a tentative patch to make tipcutils scripts sh-compatible. I'm not so sure about [[ -> [ change, so please take a look at it. Thanks! -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (990, 'unstable'), (75, 'testing'), (50, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.21-1-686 (SMP w/1 CPU core) Locale: LANG=es_AR.UTF-8, LC_CTYPE=es_AR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages tipcutils depends on: ii coreutils 5.97-5.3 The GNU core utilities ii debconf [debconf-2.0] 1.5.13 Debian configuration management sy ii ifupdown 0.6.8 high level tools to configure netw ii libc6 2.6-2 GNU C Library: Shared libraries ii lsb-base 3.1-23.1 Linux Standard Base 3.1 init scrip ii net-tools 1.60-17 The NET-3 networking toolkit tipcutils recommends no packages. -- debconf information excluded
--- /etc/init.d/tipcutils.orig 2007-07-13 13:19:24.958404554 -0300 +++ /etc/init.d/tipcutils 2007-07-13 13:23:06.971056334 -0300 @@ -31,23 +31,23 @@ # Read configuration variable file if it is present [ -r /etc/default/$NAME ] && . /etc/default/$NAME -if [[ "$TIPC_CONFIGURED" != "TRUE" ]]; then +if [ "$TIPC_CONFIGURED" != "TRUE" ]; then echo Edit /etc/default/$NAME in order to start TIPC, exiting... exit 0 fi -function start_interfaces +start_interfaces() { INTERFACES=`/sbin/ifconfig -s |awk '{print $1}'` for IF in $INTERFACES do - if [[ $TIPC_INTERFACES = *$IF* ]]; then + if [ $TIPC_INTERFACES = *$IF* ]; then IFACE=$IF /etc/network/if-up.d/$NAME fi done } -function start_tipc +start_tipc() { echo Starting TIPC if [ -n "$TIPC_NETID" ]; then @@ -74,7 +74,7 @@ start_interfaces } -function stop_tipc +stop_tipc() { # only unloding the module stops tipc rmmod tipc --- /var/lib/dpkg/info/tipcutils.postinst.orig 2007-07-13 13:18:43.956067964 -0300 +++ /var/lib/dpkg/info/tipcutils.postinst 2007-07-13 13:19:00.457008299 -0300 @@ -23,7 +23,7 @@ # Source debconf library. . /usr/share/debconf/confmodule -function configure_tipc { +configure_tipc() { TMP_FILE=$1 db_get tipcutils/address || true