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

fix various comments

parent c545278d
...@@ -2,13 +2,14 @@ ...@@ -2,13 +2,14 @@
# #
# etercifs CIFS support for Linux kernel # 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 # chkconfig: 345 03 80
# #
# description: linux cifs module \ # description: linux cifs module \
# Multiplatform init script \ # Multiplatform init script \
# 2006, 2007, 2008 Public domain # 2006, 2007, 2008, 2009 Public domain
# #
# modulename: etercifs # modulename: etercifs
# #
...@@ -145,11 +146,12 @@ load_module() ...@@ -145,11 +146,12 @@ load_module()
local i local i
if is_origmoduled ; then if is_origmoduled ; then
umount_cifs umount_cifs
echo -n "Removing CIFS kernel module... " echo -n "Removing vanilla kernel module $ORIGMODULENAME... "
$RMMOD $ORIGMODULENAME || { failure ; return ; } $RMMOD $ORIGMODULENAME || { failure ; return ; }
success
fi fi
echo -n "Loading CIFS kernel module... " echo -n "Loading kernel module $MODULENAME... "
get_module_version get_module_version
...@@ -158,7 +160,7 @@ load_module() ...@@ -158,7 +160,7 @@ load_module()
failure failure
show_module_version show_module_version
echo " Please, run 'service etercifs build' to build the etercifs module (recommended)" 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 return
} }
fi fi
...@@ -184,9 +186,9 @@ start() ...@@ -184,9 +186,9 @@ start()
stop() stop()
{ {
umount_cifs umount_cifs
echo -n "Unloading CIFS kernel module... " echo -n "Unloading kernel module $MODULENAME... "
is_moduled || { passed ; return ; } 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 success
} }
...@@ -199,7 +201,7 @@ show_module_version() ...@@ -199,7 +201,7 @@ show_module_version()
echo " kernel module $MODULENAME is built" echo " kernel module $MODULENAME is built"
fi fi
if [ "$MODULEVERSION" != "$MODVER" ] ; then 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 fi
} }
...@@ -208,7 +210,7 @@ show_loaded_module_version() ...@@ -208,7 +210,7 @@ show_loaded_module_version()
if [ $LOADEDMODVER ] ; then if [ $LOADEDMODVER ] ; then
echo " kernel module $MODULENAME version $LOADEDMODVER is loaded" echo " kernel module $MODULENAME version $LOADEDMODVER is loaded"
if [ "$MODULEVERSION" != "$LOADEDMODVER" ] ; then 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 fi
else else
echo " WARNING!!! Can't get version of loaded module $MODULENAME!" echo " WARNING!!! Can't get version of loaded module $MODULENAME!"
...@@ -226,10 +228,10 @@ status() ...@@ -226,10 +228,10 @@ status()
show_loaded_module_version show_loaded_module_version
else else
if is_origmoduled ; then if is_origmoduled ; then
echo " origin kernel module $ORIGMODULENAME loaded" echo " vanilla kernel module $ORIGMODULENAME loaded"
fi fi
echo " WARNING!!! Kernel module $MODULENAME is not loaded!" 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 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