View Single Post
Old 06-29-2025, 11:58 PM   #53
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,972
Karma: 169810634
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
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

Last edited by DNSB; 06-30-2025 at 12:07 AM.
DNSB is online now   Reply With Quote