mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-02 23:43:56 +08:00
🎁 Sync 2026-10-12 18:45:34
This commit is contained in:
1 parent
8e0a32565f
commit
bc24a0656c
3 files changed
+4
-4
No files matched your search
@@ -135,7 +135,7 @@ return view.extend({
|
||||
ipv6: uci.get('network', 'wan6', 'auto') === '0' ? '0' : '1',
|
||||
https: uci.get('wizard', 'default', 'https') || '0',
|
||||
cookie_p: uci.get('wizard', 'default', 'persistent_cookies') || '1',
|
||||
landing_page: uci.get('wizard', 'default', 'landing_page') || 'auto',
|
||||
landing_page: uci.get('luci', 'main', 'landing_page') || 'auto',
|
||||
autoupgrade_fm: uci.get('wizard', 'default', 'autoupgrade_fm') || '0',
|
||||
coremark: uci.get('wizard', 'default', 'coremark') || '0',
|
||||
wifi_ssid: baseSsid || (this.hasWireless ? 'Kwrt' : ''),
|
||||
@@ -485,7 +485,7 @@ return view.extend({
|
||||
uci.set('wizard', 'default', 'persistent_cookies', cur.cookie_p);
|
||||
}
|
||||
if (has(changed, 'landing_page')) {
|
||||
uci.set('wizard', 'default', 'landing_page', cur.landing_page);
|
||||
uci.set('luci', 'main', 'landing_page', cur.landing_page);
|
||||
}
|
||||
|
||||
// J. 向导专属项(完整保留 autoupgrade_fm 与 coremark)
|
||||
|
||||
@@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_NAME:=my-default-settings
|
||||
PKG_VERSION:=2
|
||||
PKG_RELEASE:=33
|
||||
PKG_RELEASE:=34
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ end
|
||||
|
||||
function landing_page()
|
||||
local uci = luci.model.uci.cursor()
|
||||
local page = uci:get("wizard", "default", "landing_page")
|
||||
local page = uci:get("luci", "main", "landing_page")
|
||||
local target = {"admin", "status", "overview"}
|
||||
|
||||
-- 1. 默认/自动模式
|
||||
Reference in new issue
Block a user