@@ -101,12 +101,6 @@ while : ; do
101
101
rm -R /etc/enigma2
102
102
;;
103
103
42)
104
- df -P | grep -v " tmpfs " | awk ' {print $6}' | tail -n +3 > /tmp/upgrade_mountpoints.txt
105
- while read line; do
106
- if [ -f $line /var/lib/opkg/status ]; then
107
- DESTS=$DESTS " --add-dest " $line " :" $line
108
- fi
109
- done < /tmp/upgrade_mountpoints.txt
110
104
# bind the console (when available)
111
105
[ -f /sys/class/vtconsole/vtcon1/bind ] && echo 1 > /sys/class/vtconsole/vtcon1/bind
112
106
prevupd=0
@@ -116,13 +110,23 @@ while : ; do
116
110
if [ " $( opkg list-upgradable busybox) " != " " ]; then
117
111
opkg update busybox 2>&1 | tee -a /home/root/opkgupgrade.log
118
112
fi
119
- # update all other packages
113
+ # update all other packages installed on the rootfs
120
114
while [ $currupd -gt 0 -a $currupd -ne $prevupd ]; do
121
- opkg upgrade $DESTS 2>&1 | tee -a /home/root/opkgupgrade.log
115
+ opkg upgrade 2>&1 | tee -a /home/root/opkgupgrade.log
122
116
prevupd=$currupd
123
117
currupd=` opkg list-upgradable | wc -l`
124
118
echo " ===> $currupd PACKAGE(S) REMAINING" >> /home/root/opkgupgrade.log
125
119
done
120
+ # and remaining install destinations
121
+ df -P | grep -v " tmpfs " | awk ' {print $6}' | tail -n +3 > /tmp/upgrade_mountpoints.txt
122
+ while read line; do
123
+ if [ -f $line /var/lib/opkg/status ]; then
124
+ DESTS=$DESTS " --add-dest " $line " :" $line
125
+ fi
126
+ done < /tmp/upgrade_mountpoints.txt
127
+ if [ " $DESTS " != " " ]; then
128
+ opkg upgrade $DESTS 2>&1 | tee -a /home/root/opkgupgrade.log
129
+ fi
126
130
/sbin/reboot
127
131
;;
128
132
43)
0 commit comments