From 4b8cceb57106bba5033d0cd5cb3f653e8b896d5a Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 22 Feb 2012 20:29:15 +0000 Subject: [PATCH] wicd: emit ip-up and ip-down as well svn path=/nixpkgs/trunk/; revision=32482 --- pkgs/tools/networking/wicd/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/networking/wicd/default.nix b/pkgs/tools/networking/wicd/default.nix index 72d41519c7ce..317dec365a1d 100644 --- a/pkgs/tools/networking/wicd/default.nix +++ b/pkgs/tools/networking/wicd/default.nix @@ -90,11 +90,13 @@ stdenv.mkDerivation rec { echo '#!/bin/sh initctl emit -n wicd-preconnect ITYPE="$1" ESSID="$2" BSSID="$3"' > $out/etc/scripts/preconnect/upstart-emit echo '#!/bin/sh -initctl emit -n wicd-postconnect ITYPE="$1" ESSID="$2" BSSID="$3"' > $out/etc/scripts/postconnect/upstart-emit +initctl emit -n wicd-postconnect ITYPE="$1" ESSID="$2" BSSID="$3" +initctl emit -n ip-up' > $out/etc/scripts/postconnect/upstart-emit echo '#!/bin/sh initctl emit -n wicd-predisconnect ITYPE="$1" ESSID="$2" BSSID="$3"' > $out/etc/scripts/predisconnect/upstart-emit echo '#!/bin/sh -initctl emit -n wicd-postdisconnect ITYPE="$1" ESSID="$2" BSSID="$3"' > $out/etc/scripts/postdisconnect/upstart-emit +initctl emit -n wicd-postdisconnect ITYPE="$1" ESSID="$2" BSSID="$3" +initctl emit -n ip-down' > $out/etc/scripts/postdisconnect/upstart-emit chmod a+x $out/etc/scripts/*/upstart-emit '';