summaryrefslogtreecommitdiff
path: root/system/mkinitfs/mkinitfs.pre-upgrade
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-07 22:29:03 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-07 22:29:03 -0500
commit6f3a6da561a3e1a6cdb1aa4765610773e13c2dca (patch)
tree401bd3eea285bfe240a664f04a2792491b1fa74e /system/mkinitfs/mkinitfs.pre-upgrade
parente070336d60ba45aa1f8cb596bfb1c820a1d9734d (diff)
downloadpackages-6f3a6da561a3e1a6cdb1aa4765610773e13c2dca.tar.gz
packages-6f3a6da561a3e1a6cdb1aa4765610773e13c2dca.tar.bz2
packages-6f3a6da561a3e1a6cdb1aa4765610773e13c2dca.tar.xz
packages-6f3a6da561a3e1a6cdb1aa4765610773e13c2dca.zip
system/mkinitfs: new package
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