-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 🔨 Tweaks and improvements * ✏️ Replace some Hass.io occurances * ✏️ Typo
- Loading branch information
Showing
9 changed files
with
41 additions
and
53 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
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/dev/bus/usb/*/* false root 0777 0777 | ||
/etc/nut/* true root:nut 0660 0660 | ||
/usr/bin/notify false root 0755 0755 | ||
/usr/bin/shutdownhost false root 0755 0755 | ||
/usr/bin/wall false root 0755 0755 | ||
/usr/bin/shutdownhassio false root 0755 0755 | ||
/var/run/nut false root:nut 0770 0770 | ||
/etc/nut/* false root:nut 0660 0660 | ||
/dev/bus/usb/*/* false root 0777 0777 |
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
9 changes: 3 additions & 6 deletions
9
nut/rootfs/usr/bin/shutdownhassio → nut/rootfs/usr/bin/shutdownhost
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 |
---|---|---|
@@ -1,9 +1,6 @@ | ||
#!/bin/bash | ||
#!/usr/bin/with-contenv bashio | ||
# ============================================================================== | ||
# Home Assistant Community Add-on: Network UPS Tools | ||
# Script to shutdown Hassio from UPS Shutdowm Command | ||
# Script to shutdown the host from UPS Shutdown Command | ||
# ============================================================================== | ||
|
||
curl -sS -X "POST" \ | ||
-H "X-Supervisor-Token: ${SUPERVISOR_TOKEN}" \ | ||
"http://hassio/host/shutdown" | ||
bashio::host.shutdown |