mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-12-25 11:48:21 +01:00
change poweroff command
This commit is contained in:
parent
3a5242e6e9
commit
8bf76e6661
File diff suppressed because one or more lines are too long
@ -10,7 +10,7 @@
|
|||||||
"author": "",
|
"author": "",
|
||||||
"email": ""
|
"email": ""
|
||||||
},
|
},
|
||||||
"version":"0.1.2-a",
|
"version":"0.1.3-a",
|
||||||
"category":"Other",
|
"category":"Other",
|
||||||
"iconclass":"fa fa-android",
|
"iconclass":"fa fa-android",
|
||||||
"mimes":["none"],
|
"mimes":["none"],
|
||||||
|
Binary file not shown.
@ -6,9 +6,9 @@ class JarvisService extends OS.application.BaseService
|
|||||||
|
|
||||||
@nodes = [
|
@nodes = [
|
||||||
{text: __("Status"), id: 1},
|
{text: __("Status"), id: 1},
|
||||||
{text: __("Exit service"), id: 2},
|
|
||||||
{text: __("Shutdown"), id: 3},
|
{text: __("Shutdown"), id: 3},
|
||||||
{text: __("Reboot"), id: 4}
|
{text: __("Reboot"), id: 4},
|
||||||
|
{text: __("Exit service"), id: 2}
|
||||||
]
|
]
|
||||||
@onchildselect = (e) => @action e
|
@onchildselect = (e) => @action e
|
||||||
|
|
||||||
@ -61,9 +61,9 @@ class JarvisService extends OS.application.BaseService
|
|||||||
when 2
|
when 2
|
||||||
@quit()
|
@quit()
|
||||||
when 3
|
when 3
|
||||||
@execute("halt\n")
|
@execute("poweroff")
|
||||||
when 4
|
when 4
|
||||||
@execute("reboot\n")
|
@execute("reboot")
|
||||||
|
|
||||||
execute: (cmd) ->
|
execute: (cmd) ->
|
||||||
return unless @tunnel
|
return unless @tunnel
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
"author": "",
|
"author": "",
|
||||||
"email": ""
|
"email": ""
|
||||||
},
|
},
|
||||||
"version":"0.1.2-a",
|
"version":"0.1.3-a",
|
||||||
"category":"Other",
|
"category":"Other",
|
||||||
"iconclass":"fa fa-android",
|
"iconclass":"fa fa-android",
|
||||||
"mimes":["none"],
|
"mimes":["none"],
|
||||||
|
@ -86,7 +86,7 @@
|
|||||||
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/JarvisControl/README.md",
|
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/JarvisControl/README.md",
|
||||||
"category": "Other",
|
"category": "Other",
|
||||||
"author": "",
|
"author": "",
|
||||||
"version": "0.1.2-a",
|
"version": "0.1.3-a",
|
||||||
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/JarvisControl/build/release/JarvisControl.zip"
|
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/JarvisControl/build/release/JarvisControl.zip"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user