File: kernelmodules_hfs

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

[ -d /var/lib/partman ] || mkdir /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