Whamcloud - gitweb
- add things to /etc/modules.conf | /etc/modprobe.conf
authorjacob <jacob>
Thu, 7 Jul 2005 21:43:41 +0000 (21:43 +0000)
committerjacob <jacob>
Thu, 7 Jul 2005 21:43:41 +0000 (21:43 +0000)
 - tweaks to init scripts for SLES 9

build/lustre.spec.in

index 0f827d5..33d4d46 100644 (file)
@@ -170,6 +170,27 @@ if [ -f /boot/System.map-%{kversion} ]; then
 else
        depmod -ae %{kversion} || exit 0
 fi
+for ext in .local "" ; do
+       f=/etc/modprobe.conf$ext
+       if [ -f $f ] && ! grep llite $f >/dev/null 2>/dev/null ; then
+               cat >> $f <<EOF
+install kptlrouter modprobe portals ; modprobe --ignore-install kptlrouter
+install ptlrpc modprobe ksocknal ; modprobe --ignore-install ptlrpc
+install llite modprobe lov osc ; modprobe --ignore-install llite
+alias lustre llite
+EOF
+               break
+       fi
+done
+f=/etc/modules.conf
+if [ -f $f ] && ! grep llite $f >/dev/null 2>/dev/null ; then
+       cat >> $f <<EOF
+add below kptlrouter portals
+add below ptlrpc ksocknal
+add below llite lov osc
+alias lustre llite
+EOF
+fi
 
 %postun modules
 if [ -f /boot/System.map-%{kversion} ]; then