mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
Merge pull request #390 from balloob/restart-osx
Add a Way to Restart on OS X
This commit is contained in:
commit
6e6aa15f7c
@ -103,6 +103,10 @@ def get_arguments():
|
|||||||
'--uninstall-osx',
|
'--uninstall-osx',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
help='Uninstalls from OS X.')
|
help='Uninstalls from OS X.')
|
||||||
|
parser.add_argument(
|
||||||
|
'--restart-osx',
|
||||||
|
action='store_true',
|
||||||
|
help='Restarts on OS X.')
|
||||||
if os.name != "nt":
|
if os.name != "nt":
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--daemon',
|
'--daemon',
|
||||||
@ -216,6 +220,10 @@ def main():
|
|||||||
if args.uninstall_osx:
|
if args.uninstall_osx:
|
||||||
uninstall_osx()
|
uninstall_osx()
|
||||||
return
|
return
|
||||||
|
if args.restart_osx:
|
||||||
|
uninstall_osx()
|
||||||
|
install_osx()
|
||||||
|
return
|
||||||
|
|
||||||
# daemon functions
|
# daemon functions
|
||||||
if args.pid_file:
|
if args.pid_file:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user