File tree Expand file tree Collapse file tree 9 files changed +75
-17
lines changed Expand file tree Collapse file tree 9 files changed +75
-17
lines changed Original file line number Diff line number Diff line change @@ -8,13 +8,12 @@ Kindle 越狱插件 File Browser 使用说明:
8
8
2 . 插件安装完成后,进入 Kindle 界面,打开 KUAL,可以在菜单中找到【File Browser】,可进行如下操作:
9
9
-【 Start 】可开启免登录的 WEB 服务
10
10
-【 Start (Auth) 】可开启带登录验证的 WEB 服务(默认用户名密码均为:admin)
11
- -【 Reset 】删除包含配置信息的数据文件 filebrowser.db。谨慎点击。
12
- -【 Kill 】强行中止后台的 WEB 服务(用于debug),请勿用于正常退出。谨慎点击。
11
+ -【 Reset 】删除包含配置信息的数据文件 filebrowser.db
12
+ -【 Stop 】停止 WEB 服务
13
13
3 . 如果服务开启时设备 WiFi 处于关闭状态,WiFi 会被自动打开并在服务关闭后恢复原来状态。
14
14
4 . 开启 WEB 服务后,可以在 Kindle 界面的顶部看到 IP 地址,在同一局域网下即可通过浏览器访问此地址。
15
- 5 . 服务开启后会阻止屏幕自动关闭,请使用电源键关闭filebrowser服务,再按电源键即可正常锁屏休眠。
16
- 6 . 顶部残留 IP 显示意味着服务未完全关闭,提醒用户该设备将不会熄屏和休眠。按一次电源键后 IP 会消失,否则请重启设备。
15
+ 5 . 服务开启后会阻止屏幕自动关闭,第一次按电源键会关闭filebrowser服务,再按即可正常锁屏休眠。
16
+
17
+ =======================================================
17
18
18
- =======================================================
19
- 可前往 https://github.com/filebrowser/filebrowser 下载linux-armv7版本的release,用以更新插件的二进制文件` extensions/filebrowser/filebrowser `
20
19
详细说明及问题反馈:https://bookfere.com/post/823.html
Original file line number Diff line number Diff line change 2
2
<extension >
3
3
<information >
4
4
<name >File Browser</name >
5
- <version >1.2 </version >
5
+ <version >1.3 </version >
6
6
<author >Sparkle</author >
7
+ <author >guoyongzhi</author >
7
8
<id >filebrowser</id >
8
9
</information >
9
10
<menus >
Original file line number Diff line number Diff line change
1
+ ps aux | grep [f]ilebrowser | awk ' {print $2}' | xargs -i kill {} > /dev/null
2
+ lipc-set-prop -i com.lab126.powerd preventScreenSaver 0
3
+ eips 30 1 " "
4
+ eips 30 3 " "
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ iptables -I INPUT -p tcp --dport 80 -j ACCEPT
3
+
4
+ # enable wireless if it is currently off
5
+ WIFI_IS_OFF=0
6
+ if [ 0 -eq ` lipc-get-prop com.lab126.cmd wirelessEnable` ]; then
7
+ eips 30 3 " WiFi is off, turning it on now"
8
+ lipc-set-prop com.lab126.cmd wirelessEnable 1
9
+ WIFI_IS_OFF=1
10
+ fi
11
+
12
+ # start filebrowser in the background
13
+ if [ " $( ps aux | grep ' [f]ilebrowser' ) " ]; then killall filebrowser; fi
14
+
15
+ if [ -f ./filebrowser.db ]
16
+ then
17
+ METHOD=$( ./filebrowser config cat | grep ' Auth method' | awk ' {print $3}' )
18
+ if [ ' json' != " $METHOD " ]
19
+ then
20
+ ./filebrowser config set --auth.method=json > /dev/null
21
+ fi
22
+ fi
23
+ ./filebrowser -a 0.0.0.0 -p 80 -r / > /dev/null &
24
+
25
+ # refresh IP display in the background
26
+ while : ; do
27
+ eips 30 1 " == ` ifconfig wlan0 | grep ' inet addr' | awk -F ' [ :]' ' {print $13}' ` =="
28
+ sleep 5
29
+ done > /dev/null &
30
+
31
+ # waiting for powerButtonPressed
32
+ lipc-set-prop -i com.lab126.powerd preventScreenSaver 1
33
+ lipc-wait-event com.lab126.hal powerButtonPressed | read event # it's blocking
34
+ lipc-set-prop -i com.lab126.powerd preventScreenSaver 0
35
+ kill $( jobs -p)
36
+ eips 30 3 " File Browser is turned off. "
37
+
38
+ # Restore WiFi status
39
+ if [ 1 -eq $WIFI_IS_OFF ]; then
40
+ lipc-set-prop com.lab126.cmd wirelessEnable 0
41
+ sleep 0.5
42
+ eips 30 3 " Turning off WiFi "
43
+ fi
44
+
45
+ # Clear screen
46
+ sleep 1
47
+ eips 30 1 " "
48
+ eips 30 3 " "
Original file line number Diff line number Diff line change 7
7
{
8
8
"name" : " Start" ,
9
9
"priority" : 1 ,
10
- "action" : " ./start .sh" ,
10
+ "action" : " ./filebrowser_start .sh" ,
11
11
"param" : " "
12
12
},
13
13
{
14
14
"name" : " Start (Auth)" ,
15
15
"priority" : 2 ,
16
- "action" : " ./start_auth .sh" ,
16
+ "action" : " ./filebrowser_start_auth .sh" ,
17
17
"param" : " "
18
18
},
19
19
{
20
- "name" : " Show Status " ,
20
+ "name" : " Start (root path) " ,
21
21
"priority" : 3 ,
22
- "action" : " ./show_status.sh" ,
23
- "param" : " " ,
24
- "exitmenu" : false
22
+ "action" : " ./filebrowser_start_auth_root.sh" ,
23
+ "param" : " "
25
24
},
26
25
{
27
- "name" : " Kill " ,
26
+ "name" : " Show Status " ,
28
27
"priority" : 4 ,
29
- "action" : " killall filebrowser" ,
30
- "param" : " "
28
+ "action" : " ./show_status.sh" ,
29
+ "param" : " " ,
30
+ "exitmenu" : false
31
31
},
32
32
{
33
33
"name" : " Reset" ,
34
34
"priority" : 5 ,
35
35
"action" : " rm ./filebrowser.db" ,
36
36
"param" : " "
37
+ },
38
+ {
39
+ "name" : " Kill" ,
40
+ "priority" : 6 ,
41
+ "action" : " ./filebrowser_kill.sh" ,
42
+ "param" : " "
37
43
}
38
44
]
39
45
}
Original file line number Diff line number Diff line change 7
7
else
8
8
result=" File Browser is not running "
9
9
fi
10
- eips 29 3 " $result "
10
+ eips 30 3 " $result "
You can’t perform that action at this time.
0 commit comments