# HG changeset patch # User Rohit Joshi # Date 1241179682 0 # Node ID ce5e512ab4b228af878d378049d6a4eaa1611d06 # Parent 49f0bd2ae6ad7582965a91bab7d7a9d241f55131 Fix: wicd for udhcpc diff -r 49f0bd2ae6ad -r ce5e512ab4b2 wicd/receipt --- a/wicd/receipt Fri May 01 17:30:29 2009 +0200 +++ b/wicd/receipt Fri May 01 12:08:02 2009 +0000 @@ -5,7 +5,7 @@ CATEGORY="misc" SHORT_DESC="Network connection manager" MAINTAINER="jozee@slitaz.org" -DEPENDS="python dbus-python ethtool" +DEPENDS="python dbus-python ethtool wpa_supplicant" BUILD_DEPENDS="python-dev dbus-python-dev python" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://heanet.dl.sourceforge.net/sourceforge/wicd/" @@ -37,5 +37,21 @@ cp -a $_pkg/usr/share/icons/hicolor/32x32 $fs/usr/share/icons/hicolor mkdir -p $fs/etc/init.d cp -a stuff/wicd $fs/etc/init.d - cp -a stuff/wpa_passphrase $fs/usr/bin + # dhclient as fake udhcpc wrapper + cp -a stuff/dhclient $fs/usr/bin + # set permissions + chmod +x $fs/usr/bin/dhclient + } + +# edit daemons.conf. +post_install() +{ + local root + root=$1 + if ! grep -q ^WICD_OPTIONS $root/etc/daemons.conf; then + echo '# wicd options.' >> $root/etc/daemons.conf + echo 'WICD_OPTIONS=""' >> $root/etc/daemons.conf + echo '' >> $root/etc/daemons.conf + fi +} diff -r 49f0bd2ae6ad -r ce5e512ab4b2 wicd/stuff/dhclient --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wicd/stuff/dhclient Fri May 01 12:08:02 2009 +0000 @@ -0,0 +1,3 @@ +#!/bin/sh +# wrapper script +/sbin/udhcpc -b -i $1