Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#5957 - netcfg after-connect command enhancement
Attached to Project:
Arch Linux
Opened by daniel g. siegel (dgsiegel) - Friday, 08 December 2006, 12:25 GMT
Last edited by Roman Kyrylych (Romashka) - Friday, 08 December 2006, 17:36 GMT
Opened by daniel g. siegel (dgsiegel) - Friday, 08 December 2006, 12:25 GMT
Last edited by Roman Kyrylych (Romashka) - Friday, 08 December 2006, 17:36 GMT
|
Detailsi created a small enhancement for netcfg to support "after connect-commands". e.g. i often need
to execute some apps to connect to the internet, like vpnc. simply add EXECUTE_COMMAND="command" to your /etc/network-profiles/foo e.g. EXECUTE_COMMAND="vpnc" in /usr/bin/netcfg you need to add the following on line 183 (after cp $PROFILE_DIR/$1 $STATE_DIR/$INTERFACE and before stat_done) if there isnt a command in the profile, nothing happens. if [ "$EXECUTE_COMMAND" ]; then echo "Executing custom command..." $EXECUTE_COMMAND if [ $? -ne 0 ]; then echo "Custom after connect-command failed" fi fi NOTE: there is missing something, which "kills" the executed program on deactivating the profile or changing network. |
This task depends upon
Closed by James Rayner (iphitus)
Sunday, 01 April 2007, 07:52 GMT
Reason for closing: Fixed
Additional comments about closing: http://wiki.archlinux.org/index.php/Netw ork_Scripts
fixed in network-scripts git
Sunday, 01 April 2007, 07:52 GMT
Reason for closing: Fixed
Additional comments about closing: http://wiki.archlinux.org/index.php/Netw ork_Scripts
fixed in network-scripts git
Comment by James Rayner (iphitus) -
Friday, 09 February 2007, 12:05 GMT
implemented in new network scripts.