Skip to content

Commit

Permalink
Merge pull request #30 from WDCommunity/entware-armv5
Browse files Browse the repository at this point in the history
Entware for ARMv5 (EX2, EX4 and MyCloud)
  • Loading branch information
stefaang authored Jan 23, 2019
2 parents f62c347 + 7178f6b commit c1e2b73
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions wdpk/entware/apkg.rc
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Package: entware
Version: 1.04
Version: 1.05
Packager: TFL
Email:
Homepage: https://github.com/Entware/Entware
Description: Ultimate repo for embedded devices
Icon: entware.png
AddonShowName: Entware-ng
AddonShowName: Entware
AddonIndexPage:
AddonUsedPort:
InstDepend:
Expand Down
2 changes: 2 additions & 0 deletions wdpk/entware/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ mount --bind ${OPT_ROOT} /opt 2>&1 | tee -a $LOG
ARCH="$(uname -m)"
if [ ${ARCH} = "x86_64" ]; then
ENT_ARCH="x64"
elif [ ${ARCH} = "armv5tel" ]; then
ENT_ARCH="armv5sf"
else
ENT_ARCH="armv7sf"
fi
Expand Down
7 changes: 6 additions & 1 deletion wdpk/entware/preinst.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/bin/sh

[ -f /tmp/debug_apkg ] && echo "APKG_DEBUG: $0 $@" >> /tmp/debug_apkg
[[ -f /tmp/debug_apkg ]] && echo "APKG_DEBUG: $0 $@" >> /tmp/debug_apkg

APKG_PATH=$1

# invalidate old entware installation leftovers
# restore them if necessary
ENTWARE_ROOT=/shares/Volume_1/entware
BACKUP=${ENTWARE_ROOT}.bak
[[ -d ${ENTWARE_ROOT} ]] && mv ${ENTWARE_ROOT} ${BACKUP}
4 changes: 2 additions & 2 deletions wdpk/entware/remove.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ path=$1
# remove /opt from shell path
rm -f /etc/profile

# uncomment this to remove all your entware apps
#rm -rf /shares/Volume_1/entware
# comment this to prevent removing all your entware apps
rm -rf /shares/Volume_1/entware

# remove init.d startup hook

Expand Down

0 comments on commit c1e2b73

Please sign in to comment.