Репозитории ALT
S: | 4.17.11-alt1 |
5.1: | 3.0.37-alt5.M50P.1 |
4.1: | 3.0.30-alt3 |
4.0: | 3.0.33-alt1.M40.1 |
+updates: | 3.0.33-alt1.M40.1 |
3.0: | 3.0.14a-alt2 |
+backports: | 3.0.28-alt1 |
Группа :: Система/Серверы
Пакет: samba
Главная Изменения Спек Патчи Исходники Загрузить Gear Bugs and FR Repocop
#!/bin/sh
#
# by Bill Nottingham <notting@redhat.com>
#
# Adapted from mount.smb by Greg Galperin, MAR99 <grg@ai.mit.edu>
#
if [ $# != 4 -o "$3" != "-o" ]; then
echo "unsupported commandline $0 $*"
exit -1
fi
for arg in `echo $4 | tr ',' ' '`; do
case "$arg" in
user=*)
SMBUSER="`echo $arg | cut -d '=' -f 2-`"
;;
passwd=*)
PASSWD=`echo $arg | cut -d '=' -f 2-`
;;
domain=*)
DOMAIN="-W `echo $arg | cut -d '=' -f 2-`"
;;
*)
;;
esac
done
if [ -n "$PASSWD" ]; then
USER=$SMBUSER%$PASSWD exec smbmount "$1" $2 $DOMAIN
else
USER=$SMBUSER exec smbmount "$1" $2 $DOMAIN -N
fi
exit $?