summaryrefslogtreecommitdiff
path: root/legacy/mkinitfs/mkinitfs.pre-upgrade
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/mkinitfs/mkinitfs.pre-upgrade')
-rw-r--r--legacy/mkinitfs/mkinitfs.pre-upgrade13
1 files changed, 13 insertions, 0 deletions
diff --git a/legacy/mkinitfs/mkinitfs.pre-upgrade b/legacy/mkinitfs/mkinitfs.pre-upgrade
new file mode 100644
index 000000000..0ece527f9
--- /dev/null
+++ b/legacy/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