forked from sirpdboy/sirpdboy-package
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
79 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# | ||
# provides Web UI to shut down (power off) your device. | ||
# routers are listed at https://github.com/sirpdboy/luci-app-poweroffdevice | ||
# This is free software, licensed under the GNU General Public License v3. | ||
|
||
msgid "PowerOff" | ||
msgstr "关机" | ||
|
||
msgid "Power Off Device" | ||
msgstr "设备关机" | ||
|
||
msgid "Perform Power Off" | ||
msgstr "执行关机" | ||
|
||
msgid "Turn off the power to the device you are using" | ||
msgstr "关闭您正在使用的设备的电源" | ||
|
||
msgid "WARNING: Power off might result in a reboot on a device which not support power off." | ||
msgstr "警告:对于不支持关机的设备,关机可能会导致重新启动." | ||
|
||
msgid "Device unreachable" | ||
msgstr "操作设备无效" | ||
|
||
msgid "Shutting Down..." | ||
msgstr "正在关机..." | ||
|
||
msgid "Device shutdown complete!" | ||
msgstr "设备关机完毕!" | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# | ||
# provides Web UI to shut down (power off) your device. | ||
# routers are listed at https://github.com/sirpdboy/luci-app-poweroffdevice | ||
# This is free software, licensed under the GNU General Public License v3. | ||
|
||
msgid "PowerOff" | ||
msgstr "关机" | ||
|
||
msgid "Power Off Device" | ||
msgstr "设备关机" | ||
|
||
msgid "Perform Power Off" | ||
msgstr "执行关机" | ||
|
||
msgid "Turn off the power to the device you are using" | ||
msgstr "关闭您正在使用的设备的电源" | ||
|
||
msgid "WARNING: Power off might result in a reboot on a device which not support power off." | ||
msgstr "警告:对于不支持关机的设备,关机可能会导致重新启动." | ||
|
||
msgid "Device unreachable" | ||
msgstr "操作设备无效" | ||
|
||
msgid "Shutting Down..." | ||
msgstr "正在关机..." | ||
|
||
msgid "Device shutdown complete!" | ||
msgstr "设备关机完毕!" | ||
|
||
|
||
|
11 changes: 11 additions & 0 deletions
11
luci-app-poweroffdevice/root/usr/share/rpcd/acl.d/luci-app-poweroffdevice.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"luci-app-poweroffdevice": { | ||
"description": "Grant UCI access for luci-app-poweroffdevice", | ||
"read": { | ||
"uci": [ "poweroffdevice" ] | ||
}, | ||
"write": { | ||
"uci": [ "poweroffdevice" ] | ||
} | ||
} | ||
} |