aboutsummaryrefslogtreecommitdiffstats
path: root/main/mkinitfs/mkinitfs.pre-upgrade
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-03-25 15:23:20 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-03-25 15:52:14 +0000
commitc931eb2fcf5562ce4f80965fffe9f40edd9eeb6d (patch)
tree3f393d0c190687179eac0a91ea7cf2fd78607502 /main/mkinitfs/mkinitfs.pre-upgrade
parenta6f8e9505176aff25bddee773857859709ad87a5 (diff)
downloadaports-c931eb2fcf5562ce4f80965fffe9f40edd9eeb6d.tar.bz2
aports-c931eb2fcf5562ce4f80965fffe9f40edd9eeb6d.tar.xz
main/mkinitfs: upgrade to 2.6.0
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