NET CONFIG APP - Xfld

daniele favara danjele at gmail.com
Sun Jan 22 16:14:56 UTC 2006


On 1/22/06, Jani Monoses <jani.monoses at gmail.com> wrote:
>
> >
> >
> >
> >
> > ah, this is in ubuntu too, a ruby-gtk1.2 app.
> > just apt-get it and see if you like it :)
>
>  actually gtk2 but uses gnome 1 libraries via xsu.
>

i think xsu shouldn't be a problem ....

if [ "`id -u`" = "0" ]; then
        exec "/usr/bin/xnetcardconfig.real"
else
        (sudo -S $0) </dev/null >/dev/null 2>&1 || {
                (xsu -c "$0" -u root -i
"/usr/share/pixmaps/xnetcardconfig.png" -t "Configure network" -d -m
"Network configuration requires^superuser priveleges.") >/dev/null
2>&1 || {
                        xmessage -center -file - <<EOF
Unable to start the network configuration tool.
Please setup sudo first!
EOF
                        exit 1
                }
        }
fi

exit 0




More information about the xubuntu-devel mailing list