~vcs-imports/partman-jfs/trunk

« back to all changes in this revision

Viewing changes to init.d/kernelmodules_jfs

  • Committer: cjwatson
  • Date: 2004-05-14 01:55:40 UTC
  • Revision ID: Arch-1:partman@bazaar.ubuntu.com%partman-jfs--trunk--0--base-0
Cloned from partman-xfs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
[ -d /var/lib/partman ] || mkdir /var/lib/partman
 
4
 
 
5
cat /proc/modules | 
 
6
while read module_name x; do
 
7
    if [ "$module_name" = jfs ]; then
 
8
        >/var/lib/partman/jfs
 
9
        exit 0
 
10
    fi
 
11
done
 
12
 
 
13
if modprobe jfs; then
 
14
    >/var/lib/partman/jfs
 
15
    exit 0
 
16
fi
 
17
 
 
18
if grep -q jfs /proc/filesystems; then
 
19
    >/var/lib/partman/jfs
 
20
fi