SliTaz GNU/Linux official and community documentation wiki.


This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:guides:network-script [2014/10/11 10:44]
mojo [Openbox]
en:guides:network-script [2014/11/15 21:00] (current)
linea updated (thanks K3nn3th)
Line 97: Line 97:
 # (This script is only useful if sudo is installed, and correctly configured) # (This script is only useful if sudo is installed, and correctly configured)
-echo ''​+echo '<​openbox_pipe_menu>​'
 # for default file: # for default file:
-echo ''​ +echo '<item label="​Load Default network.conf">​
-echo ''​ +echo -n '<action name="​Execute"><​execute>​
-echo 'sudo /​etc/​init.d/​ restart'​ +echo -n "sudo /​etc/​init.d/​ restart
-echo ''​+echo '</​execute></​action>​
 +echo '</​item>​'
-# for others ​files: +# for other configuration ​files (you may state a different directory here 
-for file in $(ls /etc/network/) +# depending on your setup)
- do +# e.g nice for frugal installs: 
- echo -e ""​ +ls /home/tux/​network/ ​| while read; do 
- echo ''​ +ls /​etc/​network/​ | while read; do 
- echo "sudo /​etc/​init.d/​ restart /​etc/​network/​$file+echo '<​item label="'"${REPLY}"'">'​ 
- echo ''​ +echo -n '<action name="​Execute"><​execute>​
- done+echo -n "sudo /​etc/​init.d/​ restart ​'/​etc/​network/​${REPLY}'​
 +echo '</​execute></​action>'​ 
 +echo '</​item>​
 # To stop connections:​ # To stop connections:​
-echo ''​ +echo '<item label="​stop Connection">​
-echo ''​ +echo -n '<action name="​Execute"><​execute>​
-echo 'sudo /​etc/​init.d/​ stop'​ +echo -n "sudo /​etc/​init.d/​ stop
-echo ''​+echo '</​execute></​action>​
 +echo '</​item>​'
-echo ''​+echo '</​openbox_pipe_menu>​' ​
 </​code>​ </​code>​
en/guides/network-script.1413017067.txt.gz · Last modified: 2014/10/11 10:44 by mojo