-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplified the rc.d and update_script scripts by adding the 'update_a…
…ddon' tool for adding the Addon Button to the right place. We also use the /tmp directory rather than having to maintain an own tmp directory within our addon directory which might cause SD card corruption upon crashes.
- Loading branch information
Showing
14 changed files
with
136 additions
and
214 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.6.5 | ||
1.6.6 |
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,8 @@ | ||
{ | ||
CONFIG_URL /addons/email | ||
CONFIG_DESCRIPTION { | ||
<li>Email-Integration</li><li>Alarmierung und Weiterleitung von Systemzustaenden</li><li>Einfache Benachrichtigungen</li> | ||
} | ||
ID email | ||
CONFIG_NAME "Email" | ||
} |
Binary file not shown.
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,9 @@ | ||
{ | ||
CONFIG_URL /addons/email | ||
CONFIG_DESCRIPTION { | ||
de {<li>Email-Integration</li><li>Alarmierung und Weiterleitung von Systemzustaenden</li><li>Einfache Benachrichtigungen</li><li>...</li>} | ||
en {<li>Email-Integration</li><li>Alerting and routing of System-States</li><li>Simple Notifications</li><li>...</li>} | ||
} | ||
ID email | ||
CONFIG_NAME "Email" | ||
} |
Binary file not shown.
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,9 @@ | ||
{ | ||
CONFIG_URL /addons/email | ||
CONFIG_DESCRIPTION { | ||
de {<li>Email-Integration</li><li>Alarmierung und Weiterleitung von Systemzustaenden</li><li>Einfache Benachrichtigungen</li><li>...</li>} | ||
en {<li>Email-Integration</li><li>Alerting and routing of System-States</li><li>Simple Notifications</li><li>...</li>} | ||
} | ||
ID email | ||
CONFIG_NAME "Email" | ||
} |
File renamed without changes.
Binary file not shown.
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,49 @@ | ||
#!/bin/sh | ||
|
||
ADDONNAME=email | ||
ADDON_DIR=/usr/local/etc/config/addons/${ADDONNAME} | ||
WWW_DIR=/usr/local/etc/config/addons/www/${ADDONNAME} | ||
RCD_DIR=/usr/local/etc/config/rc.d | ||
|
||
case "$1" in | ||
|
||
""|start) | ||
# make sure a /var/log/email.log exists | ||
touch /var/log/email.log | ||
;; | ||
|
||
info) | ||
echo "Info: <b>E-Mail CCU Addon</b><br>" | ||
echo "Info: (c) 2010-2016 HMside, Jens Maus<br>" | ||
echo "Info: <a href='https://github.com/jens-maus/hm_email'>https://github.com/jens-maus/hm_email</a>" | ||
echo "Version: $(cat ${ADDON_DIR}/VERSION)" | ||
echo "Name: E-Mail" | ||
echo "Operations: uninstall" | ||
echo "Config-Url: /addons/${ADDONNAME}/" | ||
echo "Update: /addons/${ADDONNAME}/update-check.cgi" | ||
;; | ||
|
||
restart) | ||
;; | ||
|
||
stop) | ||
;; | ||
|
||
uninstall) | ||
# remove the addon button | ||
${ADDON_DIR}/update_addon email | ||
|
||
# remove the whole addon related stuff | ||
rm -rf ${ADDON_DIR} | ||
rm -rf ${WWW_DIR} | ||
rm -f ${RCD_DIR}/${ADDONNAME} | ||
;; | ||
|
||
*) | ||
echo "Usage: ${ADDONNAME} {info|uninstall}" >&2 | ||
exit 1 | ||
;; | ||
|
||
esac | ||
|
||
exit $? |
Oops, something went wrong.