1
0
mirror of https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git synced 2023-10-10 13:37:40 +02:00
This commit is contained in:
Jan Schneider 2018-01-21 10:22:12 +01:00
parent 2541cc6dee
commit 200ee61a7c
2 changed files with 3 additions and 9 deletions

View File

@ -362,7 +362,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<tr> <tr>
<th>Addon name</th> <th>Addon name</th>
<th>Installed version</th> <th>Installed version</th>
<th class="center aligned">Available version</th> <th>Available version</th>
<th class="center aligned">Action</th> <th class="center aligned">Action</th>
</tr> </tr>
</thead> </thead>

View File

@ -6,13 +6,7 @@ ADDON_DIR=/usr/local/addons/${ADDON_NAME}
RCD_DIR=${CONFIG_DIR}/rc.d RCD_DIR=${CONFIG_DIR}/rc.d
case "$1" in case "$1" in
""|start) stop|start|restart)
# Remove stale lockfile
[ -e /usr/local/addons/rmupdate/var/install.lock ] && rm /usr/local/addons/rmupdate/var/install.lock
echo "Done."
;;
stop|restart)
echo "Nothing to do." echo "Nothing to do."
;; ;;
@ -20,7 +14,7 @@ case "$1" in
version=$(cat ${ADDON_DIR}/VERSION) version=$(cat ${ADDON_DIR}/VERSION)
echo "Info: <b>${ADDON_NAME} addon</b><br>" echo "Info: <b>${ADDON_NAME} addon</b><br>"
echo "Info: <a href='https://github.com/j-a-n/raspberrymatic-addon-rmupdate'>https://github.com/j-a-n/raspberrymatic-addon-rmupdate</a>" echo "Info: <a href='https://github.com/j-a-n/raspberrymatic-addon-rmupdate'>https://github.com/j-a-n/raspberrymatic-addon-rmupdate</a>"
echo "Name: RaspberryMatic update" echo "Name: RaspberryMatic Update"
echo "Version: ${version}" echo "Version: ${version}"
echo "Operations: uninstall" echo "Operations: uninstall"
echo "Config-Url: /addons/${ADDON_NAME}" echo "Config-Url: /addons/${ADDON_NAME}"