Zenity form for easy network configuration

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
Im doing a zenity form for easy network configuration. The end user just fills in the information and the script does the rest.
Is there a better way to do this?
Any input from you guys is welcome.
Thanks
sudo sed -i.bak '7,8 d' /etc/network/interfaces
sudo sed -i '/inet netmask/d' /etc/network/interfaces
sudo sed -i '/inet nameservers/d' /etc/network/interfaces
sudo sed -i '/inet address/d' /etc/network/interfaces
sudo sed -i '/inet gateway/d' /etc/network/interfaces
sudo sed -i "8a iface eth0 inet static" /etc/network/interfaces
ip=$(zenity --entry --title="Ip adress" --text="Ip adress:")
sudo sed -i "9a address $ip" /etc/network/interfaces
mask=$(zenity --entry --title="Netmask" --text="Netmask address:")
sudo sed -i "11a netmask $mask" /etc/network/interfaces
gateway=$(zenity --entry --title="Gateway address" --text="Gateway address:")
sudo sed -i "10a gateway $gateway" /etc/network/interfaces
dns=$(zenity --entry --title="Dns" --text="Dns address:")
sudo sed -i "12a dns-nameservers $dns" /etc/network/interfaces
sudo sed -i "13a iface eth1 inet static" /etc/network/interfaces
sudo sed -i "14a address $ip" /etc/network/interfaces
sudo sed -i "15a gateway $gateway" /etc/network/interfaces
sudo sed -i "16a netmask $mask" /etc/network/interfaces
sudo sed -i "17a dns-nameservers $dns" /etc/network/interfaces
zenity --question --text "Is the information accurate"; echo $?
if [ $? > 0 ];
then
echo "--- do it again ---"
sudo cp home/Test/interfaces /etc/network/ #this copies a interfaces.bak
#over the changed one
sleep 3s
exit
fi
Now i changed to this:
cp /etc/network/interfaces /tmp/interfaces
sed -i -e '7,8 d'
-e '/inet address/d '
-e '/inet netmask/d'
-e '/inet nameservers/d'
-e '/inet gateway/d'
-e '/iface eth0 inet static/d'
-e '/iface eth1 inet static/d' /tmp/interfaces
sudo sed -i "8a iface eth0 inet static" /tmp/interfaces
ip=$(zenity --entry --title="Ip adress" --text="Ip adress:")
sudo sed -i "9a address $ip" /tmp/interfaces
mask=$(zenity --entry --title="Netmask" --text="Netmask address:")
sudo sed -i "10a netmask $mask" /tmp/interfaces
gateway=$(zenity --entry --title="Gateway address" --text="Gateway address:")
sudo sed -i "11a gateway $gateway"/tmp/interfaces
dns=$(zenity --entry --title="Dns" --text="Dns address:")
sudo sed -i "12a dns-nameservers $dns" /tmp/interfaces
sudo sed -i "13a iface eth1 inet static" /tmp/interfaces
sudo sed -i "14a address $ip" /tmp/interfaces
sudo sed -i "15a gateway $gateway" /tmp/interfaces
sudo sed -i "16a netmask $mask" /tmp/interfaces
sudo sed -i "17a dns-nameservers $dns" /tmp/interfaces
wait 1s;
sudo zenity --text-info --height=500 --width=400 < <(cat /tmp/interfaces)
if ! zenity --question --text "ÃÂr alla addresser rätt ifyllda"; then
cp /tmp/interfaces /etc/network/interfaces
exit
fi
And nothing happens... no changes to the file whatsoever..
help? :D
bash shell-script zenity
add a comment |Â
up vote
0
down vote
favorite
Im doing a zenity form for easy network configuration. The end user just fills in the information and the script does the rest.
Is there a better way to do this?
Any input from you guys is welcome.
Thanks
sudo sed -i.bak '7,8 d' /etc/network/interfaces
sudo sed -i '/inet netmask/d' /etc/network/interfaces
sudo sed -i '/inet nameservers/d' /etc/network/interfaces
sudo sed -i '/inet address/d' /etc/network/interfaces
sudo sed -i '/inet gateway/d' /etc/network/interfaces
sudo sed -i "8a iface eth0 inet static" /etc/network/interfaces
ip=$(zenity --entry --title="Ip adress" --text="Ip adress:")
sudo sed -i "9a address $ip" /etc/network/interfaces
mask=$(zenity --entry --title="Netmask" --text="Netmask address:")
sudo sed -i "11a netmask $mask" /etc/network/interfaces
gateway=$(zenity --entry --title="Gateway address" --text="Gateway address:")
sudo sed -i "10a gateway $gateway" /etc/network/interfaces
dns=$(zenity --entry --title="Dns" --text="Dns address:")
sudo sed -i "12a dns-nameservers $dns" /etc/network/interfaces
sudo sed -i "13a iface eth1 inet static" /etc/network/interfaces
sudo sed -i "14a address $ip" /etc/network/interfaces
sudo sed -i "15a gateway $gateway" /etc/network/interfaces
sudo sed -i "16a netmask $mask" /etc/network/interfaces
sudo sed -i "17a dns-nameservers $dns" /etc/network/interfaces
zenity --question --text "Is the information accurate"; echo $?
if [ $? > 0 ];
then
echo "--- do it again ---"
sudo cp home/Test/interfaces /etc/network/ #this copies a interfaces.bak
#over the changed one
sleep 3s
exit
fi
Now i changed to this:
cp /etc/network/interfaces /tmp/interfaces
sed -i -e '7,8 d'
-e '/inet address/d '
-e '/inet netmask/d'
-e '/inet nameservers/d'
-e '/inet gateway/d'
-e '/iface eth0 inet static/d'
-e '/iface eth1 inet static/d' /tmp/interfaces
sudo sed -i "8a iface eth0 inet static" /tmp/interfaces
ip=$(zenity --entry --title="Ip adress" --text="Ip adress:")
sudo sed -i "9a address $ip" /tmp/interfaces
mask=$(zenity --entry --title="Netmask" --text="Netmask address:")
sudo sed -i "10a netmask $mask" /tmp/interfaces
gateway=$(zenity --entry --title="Gateway address" --text="Gateway address:")
sudo sed -i "11a gateway $gateway"/tmp/interfaces
dns=$(zenity --entry --title="Dns" --text="Dns address:")
sudo sed -i "12a dns-nameservers $dns" /tmp/interfaces
sudo sed -i "13a iface eth1 inet static" /tmp/interfaces
sudo sed -i "14a address $ip" /tmp/interfaces
sudo sed -i "15a gateway $gateway" /tmp/interfaces
sudo sed -i "16a netmask $mask" /tmp/interfaces
sudo sed -i "17a dns-nameservers $dns" /tmp/interfaces
wait 1s;
sudo zenity --text-info --height=500 --width=400 < <(cat /tmp/interfaces)
if ! zenity --question --text "ÃÂr alla addresser rätt ifyllda"; then
cp /tmp/interfaces /etc/network/interfaces
exit
fi
And nothing happens... no changes to the file whatsoever..
help? :D
bash shell-script zenity
First of all, you don't usesudoin a script, run the script itself as root if you need it. Are you creating abashscript here?
â dessert
Oct 11 '17 at 7:10
useif ! zenity --question --text "Is the information accurate" ; then â¦
â dessert
Oct 11 '17 at 7:20
I recommend shellcheck.net.
â dessert
Oct 11 '17 at 7:21
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Im doing a zenity form for easy network configuration. The end user just fills in the information and the script does the rest.
Is there a better way to do this?
Any input from you guys is welcome.
Thanks
sudo sed -i.bak '7,8 d' /etc/network/interfaces
sudo sed -i '/inet netmask/d' /etc/network/interfaces
sudo sed -i '/inet nameservers/d' /etc/network/interfaces
sudo sed -i '/inet address/d' /etc/network/interfaces
sudo sed -i '/inet gateway/d' /etc/network/interfaces
sudo sed -i "8a iface eth0 inet static" /etc/network/interfaces
ip=$(zenity --entry --title="Ip adress" --text="Ip adress:")
sudo sed -i "9a address $ip" /etc/network/interfaces
mask=$(zenity --entry --title="Netmask" --text="Netmask address:")
sudo sed -i "11a netmask $mask" /etc/network/interfaces
gateway=$(zenity --entry --title="Gateway address" --text="Gateway address:")
sudo sed -i "10a gateway $gateway" /etc/network/interfaces
dns=$(zenity --entry --title="Dns" --text="Dns address:")
sudo sed -i "12a dns-nameservers $dns" /etc/network/interfaces
sudo sed -i "13a iface eth1 inet static" /etc/network/interfaces
sudo sed -i "14a address $ip" /etc/network/interfaces
sudo sed -i "15a gateway $gateway" /etc/network/interfaces
sudo sed -i "16a netmask $mask" /etc/network/interfaces
sudo sed -i "17a dns-nameservers $dns" /etc/network/interfaces
zenity --question --text "Is the information accurate"; echo $?
if [ $? > 0 ];
then
echo "--- do it again ---"
sudo cp home/Test/interfaces /etc/network/ #this copies a interfaces.bak
#over the changed one
sleep 3s
exit
fi
Now i changed to this:
cp /etc/network/interfaces /tmp/interfaces
sed -i -e '7,8 d'
-e '/inet address/d '
-e '/inet netmask/d'
-e '/inet nameservers/d'
-e '/inet gateway/d'
-e '/iface eth0 inet static/d'
-e '/iface eth1 inet static/d' /tmp/interfaces
sudo sed -i "8a iface eth0 inet static" /tmp/interfaces
ip=$(zenity --entry --title="Ip adress" --text="Ip adress:")
sudo sed -i "9a address $ip" /tmp/interfaces
mask=$(zenity --entry --title="Netmask" --text="Netmask address:")
sudo sed -i "10a netmask $mask" /tmp/interfaces
gateway=$(zenity --entry --title="Gateway address" --text="Gateway address:")
sudo sed -i "11a gateway $gateway"/tmp/interfaces
dns=$(zenity --entry --title="Dns" --text="Dns address:")
sudo sed -i "12a dns-nameservers $dns" /tmp/interfaces
sudo sed -i "13a iface eth1 inet static" /tmp/interfaces
sudo sed -i "14a address $ip" /tmp/interfaces
sudo sed -i "15a gateway $gateway" /tmp/interfaces
sudo sed -i "16a netmask $mask" /tmp/interfaces
sudo sed -i "17a dns-nameservers $dns" /tmp/interfaces
wait 1s;
sudo zenity --text-info --height=500 --width=400 < <(cat /tmp/interfaces)
if ! zenity --question --text "ÃÂr alla addresser rätt ifyllda"; then
cp /tmp/interfaces /etc/network/interfaces
exit
fi
And nothing happens... no changes to the file whatsoever..
help? :D
bash shell-script zenity
Im doing a zenity form for easy network configuration. The end user just fills in the information and the script does the rest.
Is there a better way to do this?
Any input from you guys is welcome.
Thanks
sudo sed -i.bak '7,8 d' /etc/network/interfaces
sudo sed -i '/inet netmask/d' /etc/network/interfaces
sudo sed -i '/inet nameservers/d' /etc/network/interfaces
sudo sed -i '/inet address/d' /etc/network/interfaces
sudo sed -i '/inet gateway/d' /etc/network/interfaces
sudo sed -i "8a iface eth0 inet static" /etc/network/interfaces
ip=$(zenity --entry --title="Ip adress" --text="Ip adress:")
sudo sed -i "9a address $ip" /etc/network/interfaces
mask=$(zenity --entry --title="Netmask" --text="Netmask address:")
sudo sed -i "11a netmask $mask" /etc/network/interfaces
gateway=$(zenity --entry --title="Gateway address" --text="Gateway address:")
sudo sed -i "10a gateway $gateway" /etc/network/interfaces
dns=$(zenity --entry --title="Dns" --text="Dns address:")
sudo sed -i "12a dns-nameservers $dns" /etc/network/interfaces
sudo sed -i "13a iface eth1 inet static" /etc/network/interfaces
sudo sed -i "14a address $ip" /etc/network/interfaces
sudo sed -i "15a gateway $gateway" /etc/network/interfaces
sudo sed -i "16a netmask $mask" /etc/network/interfaces
sudo sed -i "17a dns-nameservers $dns" /etc/network/interfaces
zenity --question --text "Is the information accurate"; echo $?
if [ $? > 0 ];
then
echo "--- do it again ---"
sudo cp home/Test/interfaces /etc/network/ #this copies a interfaces.bak
#over the changed one
sleep 3s
exit
fi
Now i changed to this:
cp /etc/network/interfaces /tmp/interfaces
sed -i -e '7,8 d'
-e '/inet address/d '
-e '/inet netmask/d'
-e '/inet nameservers/d'
-e '/inet gateway/d'
-e '/iface eth0 inet static/d'
-e '/iface eth1 inet static/d' /tmp/interfaces
sudo sed -i "8a iface eth0 inet static" /tmp/interfaces
ip=$(zenity --entry --title="Ip adress" --text="Ip adress:")
sudo sed -i "9a address $ip" /tmp/interfaces
mask=$(zenity --entry --title="Netmask" --text="Netmask address:")
sudo sed -i "10a netmask $mask" /tmp/interfaces
gateway=$(zenity --entry --title="Gateway address" --text="Gateway address:")
sudo sed -i "11a gateway $gateway"/tmp/interfaces
dns=$(zenity --entry --title="Dns" --text="Dns address:")
sudo sed -i "12a dns-nameservers $dns" /tmp/interfaces
sudo sed -i "13a iface eth1 inet static" /tmp/interfaces
sudo sed -i "14a address $ip" /tmp/interfaces
sudo sed -i "15a gateway $gateway" /tmp/interfaces
sudo sed -i "16a netmask $mask" /tmp/interfaces
sudo sed -i "17a dns-nameservers $dns" /tmp/interfaces
wait 1s;
sudo zenity --text-info --height=500 --width=400 < <(cat /tmp/interfaces)
if ! zenity --question --text "ÃÂr alla addresser rätt ifyllda"; then
cp /tmp/interfaces /etc/network/interfaces
exit
fi
And nothing happens... no changes to the file whatsoever..
help? :D
bash shell-script zenity
bash shell-script zenity
edited Oct 11 '17 at 8:53
Kusalananda
105k14209326
105k14209326
asked Oct 11 '17 at 7:09
hibridpc
104
104
First of all, you don't usesudoin a script, run the script itself as root if you need it. Are you creating abashscript here?
â dessert
Oct 11 '17 at 7:10
useif ! zenity --question --text "Is the information accurate" ; then â¦
â dessert
Oct 11 '17 at 7:20
I recommend shellcheck.net.
â dessert
Oct 11 '17 at 7:21
add a comment |Â
First of all, you don't usesudoin a script, run the script itself as root if you need it. Are you creating abashscript here?
â dessert
Oct 11 '17 at 7:10
useif ! zenity --question --text "Is the information accurate" ; then â¦
â dessert
Oct 11 '17 at 7:20
I recommend shellcheck.net.
â dessert
Oct 11 '17 at 7:21
First of all, you don't use
sudo in a script, run the script itself as root if you need it. Are you creating a bash script here?â dessert
Oct 11 '17 at 7:10
First of all, you don't use
sudo in a script, run the script itself as root if you need it. Are you creating a bash script here?â dessert
Oct 11 '17 at 7:10
use
if ! zenity --question --text "Is the information accurate" ; then â¦â dessert
Oct 11 '17 at 7:20
use
if ! zenity --question --text "Is the information accurate" ; then â¦â dessert
Oct 11 '17 at 7:20
I recommend shellcheck.net.
â dessert
Oct 11 '17 at 7:21
I recommend shellcheck.net.
â dessert
Oct 11 '17 at 7:21
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
Run the script with
sudo. Don't prefix every single command withsudo. Alternatively, make a copy of/etc/network/interfacesas non-root and work on that and then usesudoto copy it back into place.sed ...; sed ...; sed ...may be replaced bysed -e '...' -e '...' -e '...'.Testing on
$?is not needed.
So what you get is
cp /etc/network/interfaces /tmp/interfaces
sed -i -e '7,8 d'
-e '/inet netmask/d'
-e '/inet nameservers/d
(etc.)
-e '8a iface eth0 inet static' /tmp/interfaces
(etc.)
if ! zenity --question --text "Is the information accurate"; then
...
fi
check the main question please.. i have an issue .. and i cant really explain it :)
â hibridpc
Oct 11 '17 at 8:50
@hibridpc I was making a guess on theiftest. You may have to remove the!. Also, you still have way too manysedinvocations. If you setip,gatewayandmaskat the beginning, you should be ok with just onesed.
â Kusalananda
Oct 11 '17 at 8:55
why do i get "file not found" when i write this command in shell?sudo sed -i '7a iface eth0 inet static' /tmp/interfaces ;
â hibridpc
Oct 11 '17 at 9:38
sudo sed -i '7a iface eth0 inet static' /tmp/interfaces ;
â hibridpc
Oct 11 '17 at 9:40
@hibridpc You are trying to runsedon a file called;.
â Kusalananda
Oct 11 '17 at 9:40
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
Run the script with
sudo. Don't prefix every single command withsudo. Alternatively, make a copy of/etc/network/interfacesas non-root and work on that and then usesudoto copy it back into place.sed ...; sed ...; sed ...may be replaced bysed -e '...' -e '...' -e '...'.Testing on
$?is not needed.
So what you get is
cp /etc/network/interfaces /tmp/interfaces
sed -i -e '7,8 d'
-e '/inet netmask/d'
-e '/inet nameservers/d
(etc.)
-e '8a iface eth0 inet static' /tmp/interfaces
(etc.)
if ! zenity --question --text "Is the information accurate"; then
...
fi
check the main question please.. i have an issue .. and i cant really explain it :)
â hibridpc
Oct 11 '17 at 8:50
@hibridpc I was making a guess on theiftest. You may have to remove the!. Also, you still have way too manysedinvocations. If you setip,gatewayandmaskat the beginning, you should be ok with just onesed.
â Kusalananda
Oct 11 '17 at 8:55
why do i get "file not found" when i write this command in shell?sudo sed -i '7a iface eth0 inet static' /tmp/interfaces ;
â hibridpc
Oct 11 '17 at 9:38
sudo sed -i '7a iface eth0 inet static' /tmp/interfaces ;
â hibridpc
Oct 11 '17 at 9:40
@hibridpc You are trying to runsedon a file called;.
â Kusalananda
Oct 11 '17 at 9:40
add a comment |Â
up vote
0
down vote
accepted
Run the script with
sudo. Don't prefix every single command withsudo. Alternatively, make a copy of/etc/network/interfacesas non-root and work on that and then usesudoto copy it back into place.sed ...; sed ...; sed ...may be replaced bysed -e '...' -e '...' -e '...'.Testing on
$?is not needed.
So what you get is
cp /etc/network/interfaces /tmp/interfaces
sed -i -e '7,8 d'
-e '/inet netmask/d'
-e '/inet nameservers/d
(etc.)
-e '8a iface eth0 inet static' /tmp/interfaces
(etc.)
if ! zenity --question --text "Is the information accurate"; then
...
fi
check the main question please.. i have an issue .. and i cant really explain it :)
â hibridpc
Oct 11 '17 at 8:50
@hibridpc I was making a guess on theiftest. You may have to remove the!. Also, you still have way too manysedinvocations. If you setip,gatewayandmaskat the beginning, you should be ok with just onesed.
â Kusalananda
Oct 11 '17 at 8:55
why do i get "file not found" when i write this command in shell?sudo sed -i '7a iface eth0 inet static' /tmp/interfaces ;
â hibridpc
Oct 11 '17 at 9:38
sudo sed -i '7a iface eth0 inet static' /tmp/interfaces ;
â hibridpc
Oct 11 '17 at 9:40
@hibridpc You are trying to runsedon a file called;.
â Kusalananda
Oct 11 '17 at 9:40
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
Run the script with
sudo. Don't prefix every single command withsudo. Alternatively, make a copy of/etc/network/interfacesas non-root and work on that and then usesudoto copy it back into place.sed ...; sed ...; sed ...may be replaced bysed -e '...' -e '...' -e '...'.Testing on
$?is not needed.
So what you get is
cp /etc/network/interfaces /tmp/interfaces
sed -i -e '7,8 d'
-e '/inet netmask/d'
-e '/inet nameservers/d
(etc.)
-e '8a iface eth0 inet static' /tmp/interfaces
(etc.)
if ! zenity --question --text "Is the information accurate"; then
...
fi
Run the script with
sudo. Don't prefix every single command withsudo. Alternatively, make a copy of/etc/network/interfacesas non-root and work on that and then usesudoto copy it back into place.sed ...; sed ...; sed ...may be replaced bysed -e '...' -e '...' -e '...'.Testing on
$?is not needed.
So what you get is
cp /etc/network/interfaces /tmp/interfaces
sed -i -e '7,8 d'
-e '/inet netmask/d'
-e '/inet nameservers/d
(etc.)
-e '8a iface eth0 inet static' /tmp/interfaces
(etc.)
if ! zenity --question --text "Is the information accurate"; then
...
fi
answered Oct 11 '17 at 7:18
Kusalananda
105k14209326
105k14209326
check the main question please.. i have an issue .. and i cant really explain it :)
â hibridpc
Oct 11 '17 at 8:50
@hibridpc I was making a guess on theiftest. You may have to remove the!. Also, you still have way too manysedinvocations. If you setip,gatewayandmaskat the beginning, you should be ok with just onesed.
â Kusalananda
Oct 11 '17 at 8:55
why do i get "file not found" when i write this command in shell?sudo sed -i '7a iface eth0 inet static' /tmp/interfaces ;
â hibridpc
Oct 11 '17 at 9:38
sudo sed -i '7a iface eth0 inet static' /tmp/interfaces ;
â hibridpc
Oct 11 '17 at 9:40
@hibridpc You are trying to runsedon a file called;.
â Kusalananda
Oct 11 '17 at 9:40
add a comment |Â
check the main question please.. i have an issue .. and i cant really explain it :)
â hibridpc
Oct 11 '17 at 8:50
@hibridpc I was making a guess on theiftest. You may have to remove the!. Also, you still have way too manysedinvocations. If you setip,gatewayandmaskat the beginning, you should be ok with just onesed.
â Kusalananda
Oct 11 '17 at 8:55
why do i get "file not found" when i write this command in shell?sudo sed -i '7a iface eth0 inet static' /tmp/interfaces ;
â hibridpc
Oct 11 '17 at 9:38
sudo sed -i '7a iface eth0 inet static' /tmp/interfaces ;
â hibridpc
Oct 11 '17 at 9:40
@hibridpc You are trying to runsedon a file called;.
â Kusalananda
Oct 11 '17 at 9:40
check the main question please.. i have an issue .. and i cant really explain it :)
â hibridpc
Oct 11 '17 at 8:50
check the main question please.. i have an issue .. and i cant really explain it :)
â hibridpc
Oct 11 '17 at 8:50
@hibridpc I was making a guess on the
if test. You may have to remove the !. Also, you still have way too many sed invocations. If you set ip, gateway and mask at the beginning, you should be ok with just one sed.â Kusalananda
Oct 11 '17 at 8:55
@hibridpc I was making a guess on the
if test. You may have to remove the !. Also, you still have way too many sed invocations. If you set ip, gateway and mask at the beginning, you should be ok with just one sed.â Kusalananda
Oct 11 '17 at 8:55
why do i get "file not found" when i write this command in shell?sudo sed -i '7a iface eth0 inet static' /tmp/interfaces ;
â hibridpc
Oct 11 '17 at 9:38
why do i get "file not found" when i write this command in shell?sudo sed -i '7a iface eth0 inet static' /tmp/interfaces ;
â hibridpc
Oct 11 '17 at 9:38
sudo sed -i '7a iface eth0 inet static' /tmp/interfaces ;
â hibridpc
Oct 11 '17 at 9:40
sudo sed -i '7a iface eth0 inet static' /tmp/interfaces ;
â hibridpc
Oct 11 '17 at 9:40
@hibridpc You are trying to run
sed on a file called ;.â Kusalananda
Oct 11 '17 at 9:40
@hibridpc You are trying to run
sed on a file called ;.â Kusalananda
Oct 11 '17 at 9:40
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f397359%2fzenity-form-for-easy-network-configuration%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
First of all, you don't use
sudoin a script, run the script itself as root if you need it. Are you creating abashscript here?â dessert
Oct 11 '17 at 7:10
use
if ! zenity --question --text "Is the information accurate" ; then â¦â dessert
Oct 11 '17 at 7:20
I recommend shellcheck.net.
â dessert
Oct 11 '17 at 7:21