This is a very nice kde applet that I used to see some friends using. I would sometimes ask them if one could attach commands to the icon so that one could stop/start the service associated with the device. They would tell me that it was not possible….. They were wrong.
One can do it visually but I had some problems inputing the data, so I added it manually to the config.
if you are using gentoo:

emerge knemo

Then start it in Control Center/KDE Components/Service Manager. After doing that you have to open the file ~/.kde/share/config/knemorc and add the following text to the eth0 entry.

CustomCommands=true
NumCommands=2
Command1=/etc/init.d/net.eth0 start
Command2=/etc/init.d/net.eth0 stop
MenuText1=start
MenuText2=stop
RunAsRoot1=true
RunAsRoot2=true

Remember to remove the lines that are already there. You can add all the commands that you want just remember to change NumCommands.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="">