aboutsummaryrefslogtreecommitdiffstats
path: root/main/alpine-baselayout/alpine-baselayout.pre-upgrade
blob: bb2695e47c8e1c182026d930ff74928bfb152d71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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

if ! grep -q '^shadow:' /etc/group; then
	addgroup -S -g 42 shadow
fi