Skip to content

Commit

Permalink
unsupported patch
Browse files Browse the repository at this point in the history
  • Loading branch information
jens-maus committed Jul 7, 2021
1 parent 03f2dcb commit 197ac99
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addon/rc.d/hm_pdetect
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ ADDONDIR=/usr/local/addons/${ADDONNAME}
WWWDIR=/usr/local/etc/config/addons/www/${ADDONNAME}
RCDDIR=/usr/local/etc/config/rc.d

# check for unsupported platforms
if grep -qim1 busmatic /www/api/methods/ccu/downloadFirmware.tcl; then
exit 13
fi

# function that starts hm_pdetect as a daemon
start() {
# default settings (will be overwritten by config file)
Expand Down
5 changes: 5 additions & 0 deletions addon/update_script
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ ADDON_DIR=/usr/local/addons/${ADDONNAME}
RCD_DIR=${CONFIG_DIR}/rc.d
WWW_DIR=${CONFIG_DIR}/addons/www/${ADDONNAME}

# check for unsupported platforms
if grep -qim1 busmatic /www/api/methods/ccu/downloadFirmware.tcl; then
exit 13
fi

# mount /usr/local if not already mounted
mount | grep /usr/local 2>&1 >/dev/null
if [ $? -eq 1 ]; then
Expand Down

0 comments on commit 197ac99

Please sign in to comment.