Scripts laying in /etc/network/if* works only for phases "up" and "down". I need to use phase "pre-up" for setting the wireless mode and rate of device. I know that the rate can be set also in phase "up" but not mode for madwifi as it uses iwpriv for achieving this.
test script laying in all directories logs this: Tue Nov 11 18:02:59 CET 2008: test within /etc/network/if-up.d/00test of action post-up / interface ath0 Tue Nov 11 18:03:58 CET 2008: test within /etc/network/if-down.d/00test of action down / interface ath0 Tue Nov 11 18:05:16 CET 2008: test within /etc/network/if-up.d/00test of action up / interface ath0 Tue Nov 11 18:05:34 CET 2008: test within /etc/network/if-down.d/00test of action pre-down / interface ath0 Tue Nov 11 18:05:34 CET 2008: test within /etc/network/if-post-down.d/00test of action post-down / interface ath0 Tue Nov 11 18:05:49 CET 2008: test within /etc/network/if-down.d/00test of action down / interface ath0 Tue Nov 11 18:06:02 CET 2008: test within /etc/network/if-up.d/00test of action up / interface ath0 Formerly I had a line like this in /etc/network/interfaces: > iface ath0 inet dhcp > pre-up iwpriv $IFACE mode 2 > pre-up iwconfig $IFACE rate 11M this is now ignored. I tried with both managed / unmanaged mode for NetworkManager. # sudo nm-system-settings --config=/etc/NetworkManager/nm-system- settings.conf --debug ** Message: SCPlugin-Ifupdown: init! ** Message: SCPlugin-Ifupdown: update_system_hostname ** Message: SCPluginIfupdown: guessed connection type (ath0) = 802-3-ethernet ** Message: SCPlugin-Ifupdown: update_connection_setting_from_if_block: name:ath0, type:802-3-ethernet, autoconnect:0, id:Ifupdown (ath0), uuid: 02622291-def3-43fe-0000-000000000000 ** Message: SCPluginIfupdown: management mode: managed ** Message: SCPlugin-Ifupdown: devices added (udi: /org/freedesktop/Hal/devices/net_00_0c_76_6a_b7_7b, iface: eth0) ** Message: SCPlugin-Ifupdown: devices added (udi: /org/freedesktop/Hal/devices/net_00_19_e0_82_31_3e, iface: ath0) ** Message: SCPluginIfupdown: locking wired connection setting ** Message: SCPlugin-Ifupdown: end _init. ** Message: Loaded plugin ifupdown: (C) 2008 Canonical Ltd. To report bugs please use the NetworkManager mailing list. ** Message: Loaded plugin keyfile: (c) 2007 - 2008 Red Hat, Inc. To report bugs please use the NetworkManager mailing list. ** Message: SCPlugin-Ifupdown: (26708160) ... get_connections. ** Message: SCPlugin-Ifupdown: (26708160) connections count: 1 ** Message: Adding default connection 'Auto eth0' for /org/freedesktop/Hal/devices/net_00_0c_76_6a_b7_7b -- Network manager doesn't allow configuration of wireless options https://bugs.launchpad.net/bugs/56445 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs