Source
if /var/install/bin/ask "Do you want to dismount $z mounted service $x on mountpoint $y" "n"
#----------------------------------------------------------------------------
# /var/install/bin/samba-mount-predefined-smbfs - mount predefined samba mounts
#
# Copyright (c) 2002-2013 Thomas Bork, tom(at)eisfair(dot)net
#
# Creation : 2005-06-05 tb
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#----------------------------------------------------------------------------
. /var/install/include/eislib
lsmodbin='/sbin/lsmod'
modprobebin='/sbin/modprobe'
mountbin='/bin/mount'
umountbin='/bin/umount'
do_mount='no'
row='4'
a=''
tty=`tty`
fstabsmbfsfile='/etc/fstab-smbfs'
oldifs="$IFS"
do_loadsmbfs ()
{
if [ -z "`"$lsmodbin" | grep ^$vfstype`" ]
then
"$modprobebin" $vfstype >/dev/null 2>&1
if [ $? -eq 0 ]
then
mecho --info "$vfstype loaded"
else
mecho --error "cannot load $vfstype, exiting..."
exit 1
fi
else
mecho --info "$vfstype already loaded"
fi
}
do_loadiocharset ()
{
if [ -z "`"$lsmodbin" | grep ^nls_$iocharset`" ]
then
"$modprobebin" nls_$iocharset >/dev/null 2>&1
if [ $? -eq 0 ]
then
mecho --info "nls_$iocharset loaded"
else
mecho --error "cannot load nls_$iocharset"
fi
else
mecho --info "nls_$iocharset already loaded"
fi
}
do_loadcodepage ()
{
if [ -z "`"$lsmodbin" | grep ^nls_$codepage`" ]
then