You are not logged in.
Pages: 1
hello fellow slitazers
i dont know where to put this but here.
The Network script guide poage needs to fixed ( http://doc.slitaz.org/en:guides:network-script#openbox ).
The code shown on the site for the pipe menu is corrupt, its missing the corresponding xml tags to generate the menu entries in the echo statements.
could anyone with rights to change the page fix this ?
Offline
Hi K3nn3th
Can you post the correct code on the forum?
Thanks
Offline
@Paul: good point. here we go:
#!/bin/sh
#
# openbox pipe menu to start network connections
# (This script is only useful if sudo is installed, and correctly configured)
echo '<openbox_pipe_menu>'
# for default file:
echo '<item label="Load Default network.conf">'
echo -n '<action name="Execute"><execute>'
echo -n "sudo /etc/init.d/network.sh restart"
echo '</execute></action>'
echo '</item>'
# for other configuration files (you may state a different directory here
# depending on your setup):
# e.g nice for frugal installs:
# ls /home/tux/network/ | while read; do
ls /etc/network/ | while read; do
echo '<item label="'"${REPLY}"'">'
echo -n '<action name="Execute"><execute>'
echo -n "sudo /etc/init.d/network.sh restart '/etc/network/${REPLY}'"
echo '</execute></action>'
echo '</item>'
done
# To stop connections:
echo '<item label="stop Connection">'
echo -n '<action name="Execute"><execute>'
echo -n "sudo /etc/init.d/network.sh stop"
echo '</execute></action>'
echo '</item>'
echo '</openbox_pipe_menu>'
Offline
Updated for you.
Thanks K3nn3th
Offline
Pages: 1
[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]