File: kernelmodules_reiserfs

package info (click to toggle)
partman-reiserfs 53
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 448 kB
  • sloc: sh: 319; makefile: 2
file content (20 lines) | stat: -rwxr-xr-x 340 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

mkdir -p /var/lib/partman

cat /proc/modules |
while read module_name x; do
	if [ "$module_name" = reiserfs ]; then
		>/var/lib/partman/reiserfs
		exit 0
	fi
done

if modprobe reiserfs >/dev/null 2>/dev/null; then
	>/var/lib/partman/reiserfs
	exit 0
fi

if grep -q reiserfs /proc/filesystems; then
	>/var/lib/partman/reiserfs
fi