summaryrefslogtreecommitdiff
path: root/system/mkinitfs/mkinitfs.pre-upgrade
diff options
context:
space:
mode:
Diffstat (limited to 'system/mkinitfs/mkinitfs.pre-upgrade')
-rw-r--r--system/mkinitfs/mkinitfs.pre-upgrade13
1 files changed, 13 insertions, 0 deletions
diff --git a/system/mkinitfs/mkinitfs.pre-upgrade b/system/mkinitfs/mkinitfs.pre-upgrade
new file mode 100644
index 000000000..0ece527f9
--- /dev/null
+++ b/system/mkinitfs/mkinitfs.pre-upgrade
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+mkdir -p /etc/mkinitfs/features.d
+for i in files modules; do
+ for j in /etc/mkinitfs/$i.d/*; do
+ [ -e "$j" ] || continue
+ case "$j" in
+ *.apk-new) continue;;
+ esac
+ mv $j /etc/mkinitfs/features.d/${j##*/}.$i
+ done
+done
+exit 0