View Single Post
Old 06-30-2025, 01:31 AM   #55
stp
Junior Member
stp began at the beginning.
 
Posts: 6
Karma: 10
Join Date: May 2024
Device: none
Quote:
Originally Posted by DNSB View Post
I simply set up a NickelMenu action to toggle SSH. Basically, if ssh-disabled is found, rename it to ssh-enabled and reboot, if ssh-enabled is found, rename it to ssh-disabled and reboot.
Code:
menu_item : main : Toggle SSH            : cmd_output     : 500: quiet: test -e /mnt/onboard/.kobo/ssh-disabled
      chain_failure  : skip              : 3
      chain_success  : cmd_spawn         : quiet  : mv /mnt/onboard/.kobo/ssh-disabled /mnt/onboard/.kobo/ssh-enabled
      chain_success  : dbg_toast         : SSH Disabled
      chain_always   : skip              : 2
      chain_failure  : cmd_spawn         : quiet  : mv /mnt/onboard/.kobo/ssh-enabled /mnt/onboard/.kobo/ssh-disabled
      chain_success  : dbg_toast         : SSH Enabled
      chain_always   :  power            : reboot
DNSB,

Don't you have the dbg_toast messages swapped?
stp is offline   Reply With Quote