Hello, I'm attempting to create a shell script with NickelDBus triggered fron MickelMenu. The goal is to show a dlgConfirmAcceptReject prompt when choosing the "reboot" option in NickelMenu, but I can't seem to get NickelDBus to actually *do* anything after the dialog box appears. Here's the text of the shell script as I've got it:
Quote:
#!/bin/sh
signal=$(qndb -t 10000 -s dlgConfirmResult -m dlgConfirmAcceptReject "Reboot Kobo" "Are you sure you want to reboot?" "Yes" "No")
if ( $signal -eq 1 )
then
qndb -m mwcToast 3000 "Rebooting..."
qndb -m pwrReboot
elif ( $signal -eq 0 )
then
qndb -m mwcToast 3000 "Reboot cancelled."
fi
|
Am I missing some obvious syntax issue?