View Single Post
Old 06-04-2024, 11:53 AM   #67
mullse01
Member
mullse01 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2024
Device: Kindle PW 3, Kobo Clara BW
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?
mullse01 is offline   Reply With Quote