Skip to content

Commit

Permalink
fixed packages in alternative locations not upgraded
Browse files Browse the repository at this point in the history
  • Loading branch information
WanWizard committed Sep 4, 2018
1 parent 4d97b44 commit 787badb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/enigma2.sh.in
Expand Up @@ -61,9 +61,15 @@ case $ret in
fi
;;
42)
df -P | grep -v "tmpfs " | awk '{print $6}' | tail -n +3 > /tmp/upgrade_mountpoints.txt
while read line; do
if [ -f $line/var/lib/opkg/status ]; then
DESTS=$DESTS" --add-dest "$line":"$line
fi
done < /tmp/upgrade_mountpoints.txt
# bind the console (when available)
[ -f /sys/class/vtconsole/vtcon1/bind ] && echo 1 > /sys/class/vtconsole/vtcon1/bind
( opkg upgrade sysvinit && opkg upgrade sysvinit-pidof && opkg upgrade initscripts-functions && opkg upgrade busybox && opkg upgrade kmod && opkg list-upgradable | cut -f 1 -d ' ' | xargs opkg upgrade ) 2>&1 | tee /home/root/ipkgupgrade.log
( opkg upgrade sysvinit && opkg upgrade sysvinit-pidof && opkg upgrade initscripts-functions && opkg upgrade busybox && opkg upgrade kmod && opkg list-upgradable $DESTS | cut -f 1 -d ' ' | xargs opkg upgrade $DESTS ) 2>&1 | tee /home/root/ipkgupgrade.log
/sbin/reboot
;;
43)
Expand Down

0 comments on commit 787badb

Please sign in to comment.