summaryrefslogtreecommitdiffstats
path: root/main/alpine-baselayout/alpine-baselayout.pre-upgrade
blob: 7ba635eb9987d0e5753bc9b8bd1b5c694c6d3ff4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

# we need to have our modprobe.d files with .conf suffix
for i in /etc/modprobe.d/*; do
	# ignore files that does not exist (i.e if modprobe.d is empty)
	[ -r "$i" ] || continue

	# ignore files that has an extention
	case "$i" in
		*.*) continue;;
	esac

	# append extension
	mv "$i" "$i".conf
done