Skip to content

Commit

Permalink
use COL.txt to set info position
Browse files Browse the repository at this point in the history
  • Loading branch information
guo-yong-zhi committed Jul 24, 2022
1 parent de6956a commit 1b9851a
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions COL.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
6. 如果使用过程中手动关闭WiFi(即进入飞行模式),本服务会自动关闭。
7. 使用完成后按电源键关闭本服务。Kindle将恢复到正常状态,若再按电源键则正常锁屏休眠。部分设备可能无效,请通过进入飞行模式或者【Kill】关闭服务
8. 如果有IP显示残留则意味着服务未正常退出,提醒用户设备可能依然处在屏幕常亮状态。正常情况下按电源键后IP会消失,否则请尝试点击【Kill】或重启设备。相反,IP显示消失则意味着服务已经完全关闭,保证了不会有后台任务耗电。
9. 如果IP及其它提示的显示位置不居中,可以自行在电脑上修改文件`filebrowser_wrapper.sh``kill.sh``show_status.sh`开头的`col=30`。例如改为`col=20`可以使显示更靠左
9. 如果IP及其它提示的显示位置不居中,可以自行在电脑上修改文件`COL.txt`中的数字。例如从`10`改为`20`可以使显示更靠右
## 其它说明
* 提供核心功能的二进制文件`extensions/filebrowser/filebrowser`来自 https://github.com/filebrowser/filebrowser ,使用linux-armv7版本的release
* 有任何问题或建议欢迎提issue
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>File Browser</name>
<version>1.6</version>
<version>1.7</version>
<author>Sparkle</author>
<author>guoyongzhi</author>
<id>filebrowser</id>
Expand Down
2 changes: 1 addition & 1 deletion filebrowser_wrapper.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
col=30
col=$((`cat COL.txt`))
iptables -I INPUT -p tcp --dport 80 -j ACCEPT

# enable wireless if it is currently off
Expand Down
2 changes: 1 addition & 1 deletion kill.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
col=30
col=$((`cat COL.txt`))
eips $col 3 "killing... "
lipc-send-event com.lab126.hal powerButtonPressed
sleep 5
Expand Down
2 changes: 1 addition & 1 deletion show_status.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
col=30
col=$((`cat COL.txt`))
test_process=$(ps aux | grep "[f]ilebrowser")
if [ -n "$test_process" ]
then
Expand Down
2 changes: 2 additions & 0 deletions update_binfile.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
col=$((`cat COL.txt`))
eips $col 3 "Updating..."
repo="https://github.com/filebrowser/filebrowser"
artifact="linux-armv7-filebrowser.tar.gz"

Expand Down

0 comments on commit 1b9851a

Please sign in to comment.