SliTaz SliTaz Forum

You are not logged in.

#1 2014-11-15 13:23:33

K3nn3th
Member
Registered: 2014-09-13
Posts: 194

Corrupt code on Slitaz Guide Page

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

#2 2014-11-15 17:45:15

linea
Administrator
Registered: 2011-03-31
Posts: 70

Re: Corrupt code on Slitaz Guide Page

Hi K3nn3th

Can you post the correct code on the forum?

Thanks

Offline

#3 2014-11-15 19:54:06

K3nn3th
Member
Registered: 2014-09-13
Posts: 194

Re: Corrupt code on Slitaz Guide Page

@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

#4 2014-11-15 20:02:52

linea
Administrator
Registered: 2011-03-31
Posts: 70

Re: Corrupt code on Slitaz Guide Page

Updated for you.

Thanks K3nn3th

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]