Skip to content

Commit

Permalink
Merge pull request #2 from Young-Lord/main
Browse files Browse the repository at this point in the history
add stop_KOSSH.sh
  • Loading branch information
guo-yong-zhi authored May 1, 2023
2 parents 2da5994 + 3ed549c commit c08d2db
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# KOSSH
This is a simple Kindle SSH server extracted from koreader, and is encapsulated into a KUAL extension. To use it, you need a jailbroken Kindle with KUAL installed. Then you should extract the [package](https://github.com/guo-yong-zhi/KOSSH/releases) into Kindle's `extensions` directory.
The extension has the following features:
The extension has the following features:
* Start a SSH server without password
* Auto switch WiFi, if necessary
* Display the IP on Kindle's screen
Expand Down
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<extension>
<information>
<name>KOSSH</name>
<version>1.1</version>
<version>1.2</version>
<author>guoyongzhi</author>
<id>KOSSH</id>
</information>
Expand Down
7 changes: 6 additions & 1 deletion menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@
"priority": -10,
"items": [
{
"name": "KOSSH",
"name": "Start KOSSH",
"priority": 100,
"action": "./KOSSH.sh"
},
{
"name": "Stop KOSSH",
"priority": 100,
"action": "./stop_KOSSH.sh"
}
]
}
Expand Down
11 changes: 11 additions & 0 deletions stop_KOSSH.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
col=30
eips $col 3 "killing... "
lipc-send-event com.lab126.hal powerButtonPressed
sleep 5
cat KOSSH.pid | xargs kill
killall dropbear
lipc-set-prop -i com.lab126.powerd preventScreenSaver 0
sleep 1
eips $((col-5)) 0 " "
eips $col 3 " "

0 comments on commit c08d2db

Please sign in to comment.