mirror of
https://github.com/coolsnowwolf/luci
synced 2025-01-07 07:06:41 +08:00
luci-app-pppwn: add GoldHEN Payload and logs
This commit is contained in:
parent
d49fa04d28
commit
8db02ef46f
@ -7,7 +7,7 @@ function index()
|
||||
|
||||
entry({"admin", "services", "pppwn"}, alias("admin", "services", "pppwn", "general"), _("PS4 PPP PWN"), 80)
|
||||
entry({"admin", "services", "pppwn", "general"}, cbi("pppwn/settings"), _("Base Setting"), 1)
|
||||
--entry({"admin", "services", "pppwn", "log"}, form("pppwn/info"), _("Log"), 2)
|
||||
entry({"admin", "services", "pppwn", "log"}, form("pppwn/info"), _("Log"), 2)
|
||||
|
||||
entry({"admin", "services", "pppwn", "status"}, call("status")).leaf = true
|
||||
end
|
||||
|
@ -28,4 +28,7 @@ fwver:value("900", translate("9.00"))
|
||||
fwver:value("1100", translate("11.00"))
|
||||
fwver.description = translate("1100 means Ver 11.00 etc.")
|
||||
|
||||
goldhen = s:option(DummyValue, "goldhen", translate("Download GoldHEN Payload BIN"))
|
||||
goldhen.description = translate("<a class='btn cbi-button cbi-button-apply' type='button' href=\"../../../../goldhen.bin\" target=\"_blank\" />"..translate("Copy goldhen.bin to the root directory of an exfat/fat32 USB and insert it into your PS4").."</a>")
|
||||
|
||||
return m
|
||||
|
@ -12,3 +12,9 @@ msgstr "PlayStation 4 系统版本"
|
||||
|
||||
msgid "1100 means Ver 11.00 etc."
|
||||
msgstr "1100 代表 11.00 版本,以此类推"
|
||||
|
||||
msgid "Download GoldHEN Payload BIN"
|
||||
msgstr "点击下载 GoldHEN Payload 二进制文件"
|
||||
|
||||
msgid "Copy goldhen.bin to the root directory of an exfat/fat32 USB and insert it into your PS4."
|
||||
msgstr "首次越狱请把 goldhen.bin 文件复制到一个 exfat/fat32 U盘根目录,并插入您的 PS4"
|
||||
|
@ -2,11 +2,10 @@
|
||||
# Copyright (C) 2008-2022 OpenWrt.org
|
||||
|
||||
START=99
|
||||
USE_PROCD=1
|
||||
|
||||
PROG=/usr/bin/pppwn
|
||||
|
||||
start_service() {
|
||||
start() {
|
||||
config_load "pppwn"
|
||||
|
||||
config_get "port" "config" "port"
|
||||
@ -17,8 +16,11 @@ start_service() {
|
||||
|
||||
[ "${enable}" -gt 0 ] || return
|
||||
|
||||
procd_open_instance
|
||||
procd_set_param command $PROG --interface $port --fw $fwver --stage1 "/etc/pppwn/stage1.bin" --stage2 "/etc/pppwn/stage2.bin" -a
|
||||
procd_set_param respawn
|
||||
procd_close_instance
|
||||
$PROG --interface $port --fw $fwver --stage1 "/etc/pppwn/stage1.bin" --stage2 "/etc/pppwn/stage2.bin" -a > /var/log/pppwn.log &
|
||||
|
||||
}
|
||||
|
||||
stop() {
|
||||
ps -w | grep -v "grep" | grep "$PROG" | awk '{print $1}' | xargs kill -9 >/dev/null 2>&1 &
|
||||
echo "" > /var/log/pppwn.log
|
||||
}
|
BIN
applications/luci-app-pppwn/root/www/goldhen.bin
Normal file
BIN
applications/luci-app-pppwn/root/www/goldhen.bin
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user