Added examples for starting Telnet/FTP
Unlike dev mode, you can choose to start one or the other. Also, the FTP server serves the entire KOBOeReader partition, not just .kobo. This will not conflict with dev mode. Also added examples for showing the current IP and importing books.
This commit is contained in:
21
res/doc
21
res/doc
@@ -69,13 +69,20 @@
|
||||
#
|
||||
# For example, you might have a configuration file in KOBOeReader/.adds/nm/mystuff like:
|
||||
#
|
||||
# menu_item :main :Show an Error :dbg_error :This is an error message!
|
||||
# menu_item :main :Do Nothing :cmd_spawn :sleep 60
|
||||
# menu_item :main :Dump Syslog :cmd_spawn :logread > /mnt/onboard/.adds/syslog.log
|
||||
# menu_item :main :Kernel Version :cmd_output :500:uname -a
|
||||
# menu_item :main :Sketch Pad :nickel_extras :sketch_pad
|
||||
# menu_item :main :Plato :kfmon :plato.png
|
||||
# menu_item :reader :Invert Screen :nickel_setting :invert
|
||||
# menu_item :main :Show an Error :dbg_error :This is an error message!
|
||||
# menu_item :main :Do Nothing :cmd_spawn :sleep 60
|
||||
# menu_item :main :Dump Syslog :cmd_spawn :logread > /mnt/onboard/.adds/syslog.log
|
||||
# menu_item :main :Kernel Version :cmd_output :500:uname -a
|
||||
# menu_item :main :Sketch Pad :nickel_extras :sketch_pad
|
||||
# menu_item :main :Plato :kfmon :plato.png
|
||||
# menu_item :reader :Invert Screen :nickel_setting :invert
|
||||
# menu_item :main :IP Address :cmd_output :500:/sbin/ifconfig | /usr/bin/awk '/inet addr/{print substr($2,6)}'
|
||||
# menu_item :main :Telnet :cmd_spawn :quiet:/bin/mount -t devpts | /bin/grep -q /dev/pts || { /bin/mkdir -p /dev/pts && /bin/mount -t devpts devpts /dev/pts; }
|
||||
# chain :cmd_spawn :quiet:/usr/bin/pkill -f "^/usr/bin/tcpsvd -E 0.0.0.0 1023" || true && exec /usr/bin/tcpsvd -E 0.0.0.0 1023 /usr/sbin/telnetd -i -l /bin/login
|
||||
# chain :dbg_toast :Started Telnet server on port 1023.
|
||||
# menu_item :main :FTP :cmd_spawn :quiet:/usr/bin/pkill -f "^/usr/bin/tcpsvd -E 0.0.0.0 1021" || true && exec /usr/bin/tcpsvd -E 0.0.0.0 1021 /usr/sbin/ftpd -w -t 30 /
|
||||
# chain :dbg_toast :Started FTP server for KOBOeReader partition on port 1021.
|
||||
# menu_item :main :Import Books :nickel_misc :rescan_books_full
|
||||
#
|
||||
# You will need to reboot to see any changes.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user