aboutsummaryrefslogtreecommitdiffstats
path: root/main/mkinitfs/mkinitfs.pre-upgrade
blob: 0ece527f9e3f2e71f5c33b36f2b339b93b2e751d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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