Linux-SWAT
Forum Addict!
- Joined
- Feb 13, 2010
- Messages
- 9,194
Hi !
So i bundled a .pnd with those first lines :
My problem is that sometimes, gksudo doesn't ask the password, therefore commands are not executed.
And test is created...
I don't understand...
Oh, btw, i know gksudo, as sudo does, caches the password during a limited amount of time. I tested installs on fresh systems.
So i bundled a .pnd with those first lines :
Code:
if zenity --question --title="My installer" --text="Welcome.\n\nDo you want to install it ?" --ok-label="Yes, of course" --cancel-label="Cancel" ; then
#installing some ipk
/usr/bin/gksudo "/usr/bin/opkg --nodeps install /mnt/pnd/my_installer_data/ipk/*.ipk"
#installing the root filesystem into /
/usr/bin/gksudo "/bin/tar zxvf /mnt/pnd/my_installer_data/my_root_pack-1.0-armv7a-1.tgz -C /"
touch /test
fi
My problem is that sometimes, gksudo doesn't ask the password, therefore commands are not executed.
And test is created...
I don't understand...
Oh, btw, i know gksudo, as sudo does, caches the password during a limited amount of time. I tested installs on fresh systems.
Last edited by a moderator: