Skip to content

Commit

Permalink
try to make an entry in system settings
Browse files Browse the repository at this point in the history
  • Loading branch information
firsttris committed Dec 10, 2023
1 parent f4c128c commit bde6b70
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
20 changes: 15 additions & 5 deletions addon_installer/rc.d/mui
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,29 @@
ADDON_DIR="/usr/local/addons/mui"

case "$1" in

""|start|restart|stop)
exit 0
;;

info)
echo "MUI Addon"
echo "Verzeichnis: $ADDON_DIR"
;;
echo "Info: <b>MUI CCU Addon</b><br>"
echo "Info: <a href='https://github.com/firsttris/ccu-addon-mui'>https://github.com/firsttris/ccu-addon-mui</a>"
echo "Name: MUI CCU Addon"
echo "Version: 0.0.1"
echo "Operations: uninstall"
echo "Config-Url: /addons/mui/"
echo "Update: not implemented yet"
;;
uninstall)
echo "Deinstalliere MUI Addon..."
rm -rf $ADDON_DIR
echo "Deinstallation abgeschlossen."
;;
;;
*)
echo "Usage: $0 {info|uninstall}" >&2
exit 1
;;
;;
esac

exit 0
5 changes: 3 additions & 2 deletions addon_installer/update_script
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

ADDON_DIR=/usr/local/addons/mui
RC_DIR=/usr/local/etc/config/rc.d/mui
RC_DIR=/usr/local/etc/config/rc.d
WWW_DIR=/usr/local/etc/config/addons/www

mount | grep /usr/local 2>&1 >/dev/null
Expand All @@ -14,7 +14,8 @@ cp -af dist/* $ADDON_DIR

ln -sf $ADDON_DIR $WWW_DIR

cp -af rc.d/mui $RC_DIR
cp -af rc.d/mui $RC_DIR/
chmod +x $RC_DIR/mui

cp -af lighttpd.conf /usr/local/etc/config/lighttpd/mui.conf

Expand Down

0 comments on commit bde6b70

Please sign in to comment.