shark1001

telnet

Dec 22nd, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.95 KB | None | 0 0
  1. shark@ubuntu:~$ telnet 192.168.2.15 23
  2. Trying 192.168.2.15...
  3. Connected to 192.168.2.15.
  4. Escape character is '^]'.
  5.  
  6. Welcome to the Mer/SailfishOS Boat loader debug init system.
  7.  
  8. Log so far is in /init.log
  9.  
  10. To make post-switch_root halt before starting systemd, perform:
  11.   touch /target/init_enter_debug2
  12. (When run post-switch_root, telnet is on port 2323, not 23)
  13.  
  14. You may inject commands into init shell process (PID 1):
  15.  
  16. To see output of commands as they're injected:
  17.  tail -f /init.log &
  18. To run a command:
  19.  echo "ls -l /" >/init-ctl/stdin
  20.  
  21. (Be careful if you experiment with exec as you need to terminate
  22. daemons and disable busybox hotplug handling)
  23.  
  24. To allow init to continue:
  25.  echo "continue" >/init-ctl/stdin
  26.  
  27. In order to work safely with the device's mmc you should
  28.   echo "umount_stowaways" >/init-ctl/stdin
  29.  
  30. Then you can mount and modify exported mass storage on host. When done
  31.   echo "mount_stowaways" >/init-ctl/stdin
  32.  
  33.  
  34. ~ #
Add Comment
Please, Sign In to add comment