summaryrefslogtreecommitdiff
path: root/legacy/mkinitfs/mkinitfs.pre-upgrade
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-09-14 01:58:53 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-09-14 01:58:53 +0000
commite96aa174860614b69b9e8f084b3f0cbe214163c1 (patch)
treef50a183ed97b5cb2cb02e80bc408ce5b6a48ec61 /legacy/mkinitfs/mkinitfs.pre-upgrade
parent6222744c490dc72725976f1fe3024742c16e34ee (diff)
downloadpackages-e96aa174860614b69b9e8f084b3f0cbe214163c1.tar.gz
packages-e96aa174860614b69b9e8f084b3f0cbe214163c1.tar.bz2
packages-e96aa174860614b69b9e8f084b3f0cbe214163c1.tar.xz
packages-e96aa174860614b69b9e8f084b3f0cbe214163c1.zip
system/mkinitfs: delete from repository
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