r=adilger
automatically create /dev/lnet, /dev/obd when needed.
%endif
%post -n lustre-lite-utils
%endif
%post -n lustre-lite-utils
-if [ ! -e /dev/obd ]; then
- mknod /dev/obd c 10 241
-fi
-if [ ! -e /dev/lnet ]; then
- mknod /dev/lnet c 10 240
-fi
if [ -f /etc/init.d/lustre ] ; then
/sbin/chkconfig --add lustre
/sbin/chkconfig --add lustrefs
if [ -f /etc/init.d/lustre ] ; then
/sbin/chkconfig --add lustre
/sbin/chkconfig --add lustrefs
rm -f %{_libdir}/lustre/python/Lustre/*.pyc
%post modules
rm -f %{_libdir}/lustre/python/Lustre/*.pyc
%post modules
-if [ ! -e /dev/obd ]; then
- mknod /dev/obd c 10 241
-fi
-if [ ! -e /dev/lnet ]; then
- mknod /dev/lnet c 10 240
-fi
if [ -f /boot/System.map-%{kversion} ]; then
depmod -ae -F /boot/System.map-%{kversion} %{kversion} || exit 0
else
if [ -f /boot/System.map-%{kversion} ]; then
depmod -ae -F /boot/System.map-%{kversion} %{kversion} || exit 0
else