Commit 8711d819 authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix various comments

parent c545278d
......@@ -2,13 +2,14 @@
#
# etercifs CIFS support for Linux kernel
#
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Authors: Vitaly Lipatov <lav@etersoft.ru>
# Konstantin Baev <kipruss@altlinux.org>
#
# chkconfig: 345 03 80
#
# description: linux cifs module \
# Multiplatform init script \
# 2006, 2007, 2008 Public domain
# 2006, 2007, 2008, 2009 Public domain
#
# modulename: etercifs
#
......@@ -145,11 +146,12 @@ load_module()
local i
if is_origmoduled ; then
umount_cifs
echo -n "Removing CIFS kernel module... "
echo -n "Removing vanilla kernel module $ORIGMODULENAME... "
$RMMOD $ORIGMODULENAME || { failure ; return ; }
success
fi
echo -n "Loading CIFS kernel module... "
echo -n "Loading kernel module $MODULENAME... "
get_module_version
......@@ -158,7 +160,7 @@ load_module()
failure
show_module_version
echo " Please, run 'service etercifs build' to build the etercifs module (recommended)"
echo " or run 'CHECK_VERSION=0 service etercifs restart' to disableing check."
#echo " or run 'CHECK_VERSION=0 service etercifs restart' to disable check."
return
}
fi
......@@ -184,9 +186,9 @@ start()
stop()
{
umount_cifs
echo -n "Unloading CIFS kernel module... "
echo -n "Unloading kernel module $MODULENAME... "
is_moduled || { passed ; return ; }
$RMMOD $MODULENAME || { failure ; echo "You have to umount all CIFS resources."; return ; }
$RMMOD $MODULENAME || { failure ; echo "You have to umount all CIFS resources before module unloading."; return ; }
success
}
......@@ -199,7 +201,7 @@ show_module_version()
echo " kernel module $MODULENAME is built"
fi
if [ "$MODULEVERSION" != "$MODVER" ] ; then
[ $MODVER ] && echo " WARNING!!! Versions of package $MODULENAME and built module $MODULENAME DON'T MATCH!!!"
[ $MODVER ] && echo " WARNING!!! Versions of the package $MODULENAME and built module $MODULENAME DON'T MATCH!!!"
fi
}
......@@ -208,7 +210,7 @@ show_loaded_module_version()
if [ $LOADEDMODVER ] ; then
echo " kernel module $MODULENAME version $LOADEDMODVER is loaded"
if [ "$MODULEVERSION" != "$LOADEDMODVER" ] ; then
[ $MODVER ] && echo " WARNING!!! Versions of package $MODULENAME and loaded module $MODULENAME DON'T MATCH!!!"
[ $MODVER ] && echo " WARNING!!! Versions of the package $MODULENAME and loaded module $MODULENAME DON'T MATCH!!!"
fi
else
echo " WARNING!!! Can't get version of loaded module $MODULENAME!"
......@@ -226,10 +228,10 @@ status()
show_loaded_module_version
else
if is_origmoduled ; then
echo " origin kernel module $ORIGMODULENAME loaded"
echo " vanilla kernel module $ORIGMODULENAME loaded"
fi
echo " WARNING!!! Kernel module $MODULENAME is not loaded!"
echo " Possible ERRORS when working with WINE!"
echo " WINE@Etersoft won't run on the CIFS resource!"
fi
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment