Skip to content

Commit 1b9851a

Browse files
committed
use COL.txt to set info position
1 parent de6956a commit 1b9851a

File tree

7 files changed

+8
-5
lines changed

7 files changed

+8
-5
lines changed

COL.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
10

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
6. 如果使用过程中手动关闭WiFi(即进入飞行模式),本服务会自动关闭。
1616
7. 使用完成后按电源键关闭本服务。Kindle将恢复到正常状态,若再按电源键则正常锁屏休眠。部分设备可能无效,请通过进入飞行模式或者【Kill】关闭服务
1717
8. 如果有IP显示残留则意味着服务未正常退出,提醒用户设备可能依然处在屏幕常亮状态。正常情况下按电源键后IP会消失,否则请尝试点击【Kill】或重启设备。相反,IP显示消失则意味着服务已经完全关闭,保证了不会有后台任务耗电。
18-
9. 如果IP及其它提示的显示位置不居中,可以自行在电脑上修改文件`filebrowser_wrapper.sh``kill.sh``show_status.sh`开头的`col=30`。例如改为`col=20`可以使显示更靠左
18+
9. 如果IP及其它提示的显示位置不居中,可以自行在电脑上修改文件`COL.txt`中的数字。例如从`10`改为`20`可以使显示更靠右
1919
## 其它说明
2020
* 提供核心功能的二进制文件`extensions/filebrowser/filebrowser`来自 https://github.com/filebrowser/filebrowser ,使用linux-armv7版本的release
2121
* 有任何问题或建议欢迎提issue

config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<extension>
33
<information>
44
<name>File Browser</name>
5-
<version>1.6</version>
5+
<version>1.7</version>
66
<author>Sparkle</author>
77
<author>guoyongzhi</author>
88
<id>filebrowser</id>

filebrowser_wrapper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
col=30
2+
col=$((`cat COL.txt`))
33
iptables -I INPUT -p tcp --dport 80 -j ACCEPT
44

55
# enable wireless if it is currently off

kill.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
col=30
1+
col=$((`cat COL.txt`))
22
eips $col 3 "killing... "
33
lipc-send-event com.lab126.hal powerButtonPressed
44
sleep 5

show_status.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
col=30
2+
col=$((`cat COL.txt`))
33
test_process=$(ps aux | grep "[f]ilebrowser")
44
if [ -n "$test_process" ]
55
then

update_binfile.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
col=$((`cat COL.txt`))
2+
eips $col 3 "Updating..."
13
repo="https://github.com/filebrowser/filebrowser"
24
artifact="linux-armv7-filebrowser.tar.gz"
35

0 commit comments

Comments
 (0)