aboutsummaryrefslogtreecommitdiffstats
path: root/main/mkinitfs/mkinitfs.pre-upgrade
diff options
context:
space:
mode:
Diffstat (limited to 'main/mkinitfs/mkinitfs.pre-upgrade')
-rw-r--r--main/mkinitfs/mkinitfs.pre-upgrade10
1 files changed, 10 insertions, 0 deletions
diff --git a/main/mkinitfs/mkinitfs.pre-upgrade b/main/mkinitfs/mkinitfs.pre-upgrade
new file mode 100644
index 0000000000..d9424b887d
--- /dev/null
+++ b/main/mkinitfs/mkinitfs.pre-upgrade
@@ -0,0 +1,10 @@
+#!/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
+ mv $j /etc/mkinitfs/features.d/${j##*/}.$i
+ done
+done
+exit 0