File: kernelmodules_hfs

package info (click to toggle)
partman-newworld 25
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 400 kB
  • ctags: 1
  • sloc: sh: 186; makefile: 2
file content (20 lines) | stat: -rwxr-xr-x 287 bytes parent folder | download | duplicates (4)
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" = hfs ]; then
		>/var/lib/partman/hfs
		exit 0
	fi
done

if modprobe hfs; then
	>/var/lib/partman/hfs
	exit 0
fi

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