Problem mit HSPA+ Modem Huawei E353 - Installation unmöglich?

art4core

Mitglied
Beiträge
28
Hallo,

Ich hoffe sehr dass mir hier jemand helfen kann :)

ich versuche seit einiger Zeit leider erfolglos ein Huawei E353 USB-Modem unter Ubuntu in Betrieb zu nehmen.
Da ich mich mit Skripten und deren Verwendung nicht auskenne,ist gut möglich,dass mir ein Fehler unterlief.

Sollte es unter Ubuntu nicht möglich sein,oder es unter Mint oder Debian leichter möglich sein,
das Modem in Betrieb zu nehmen,solls mir auch recht sein.

Die Hardware ist nicht defekt-unter Win7 gibts kein Problem.


Wenn das Modem angeschlossen wird,erscheint am Desktop ein Ordner namens HiLink.
In selbigen befinden sich folgende Ordner bzw Dateien:

Code:
/media/HiLink/HiLink.app
/media/HiLink/linux_mbb_install
/media/HiLink/MobileBrServ
/media/HiLink/ArConfig.dat
/media/HiLink/autorun.sh
/media/HiLink/AutoRun.exe
/media/HiLink/AUTORUN.INF
/media/HiLink/install_linux
/media/HiLink/Startup.ico

Die Skripte "autorun.sh" bzw "install_linux" lassen auch mit Rootrechten ,also mit vorangestelltem "sudo" nicht starten.
Genausowenig wie das unter
Code:
/media/HiLink/linux_mbb_install
befindliche Skript,dass in den Eigenschaften
allerdings als "Installationsanleitung" bezeichnet wird.

Das "readme" im selben Ordner sagt allerdings folgendes:
Code:
--How to Install----------------------

1.   keep your right is "root"
2.   Run "./install" in TERMINAL to install 
3.   if you have installed before , intend to the installing information

Ich hab folgendes versucht,es tat sich allerdings nichts:
Code:
thinkpositive@System-K8:
/media/HiLink/linux_mbb_install$ sudo ./install
[sudo] password for thinkpositive: 
sudo: ./install: Befehl nicht gefunden

Unterlief mir ein Fehler oder liegt die Ursache woanders?

Hier noch der Inhalt des Installskriptes aus dem Ordner "linux_mbb_install",sehr viel weiter unten,der Inhalt des install_linux Skriptes
welches sich auf
Code:
/media/HiLink/install_linux
befindet:
PHP:
#!/bin/bash

VERSION="22.001.03.01.03"

install_exit()
{
    echo "Preass any key to exit. " | tee -a ${LOG_PATH}
    read COMMAND
    exit
}

if [ `id | awk '{print $1}'` != "uid=0(root)" ]
then
    echo "You must run the install process by root." | tee -a ${LOG_PATH}
    install_exit
fi

#CURRENTPATH="`pwd`"
CURRENTPATH="$(dirname "$0")"
TEMPWORKPATH=""
INSTALL_PATH=""
LOG_PATH="/tmp/MobileBrServ_autoinstall_log"
PROCESS_NAME="mbbservice"

#if [ "$(pidof mbbservice)" != "" ]
#then 
#    kill -9 "$(pidof mbbservice)"
#fi

#echo "$CURRENTPATH"

if [ "$1" != "" ]
then
#echo "$1"
INSTALL_PATH="/usr/local/MobileBrServ"
else
INSTALL_PATH="/usr/local/MobileBrServ"
fi

ZIP_FILE="/7zr"
TMP_FILE_PATH="/tmp/MobileBrServ_AutoRun"
INSTALL_FILE="/linux_mbb_install"
SYSCONFIG_PATH="/ArConfig.dat"
INSTALL_SHELL="/install"
DATACARD_VERIFY="/DataCard_Verify"
MBB_BIN_FILE="/mbbservice.bin"
MBB_FILE="/mbbservice"
READ_ME_FILE="/readme.txt"
SYSCONFIG_VALUE="value"
SKELETON_NAME="runmbbservice"
START_SKELETON=S99$SKELETON_NAME 
STOP_SKELETON=K10$SKELETON_NAME
udevVer=""


LOG_PATH="/tmp/MobileBrServ_autoinstall_log"

#define the install variable
FIRST_INSTALL="NO"
INSTALL_OR_NOT="NO"

#define the common language
REINSTALL_CONFIRM="do you want to re-install it?"
DIFFERENT_VERSION_CONFIRM="Do you want to install a different version of the application?"
NEW_VERSION_CONFIRM="DO you want to install a new version of the application?"

copy_local()
{
    echo "begin to copy file... " | tee -a ${LOG_PATH}
    if [ "${CURRENTPATH}" != "${TMP_FILE_PATH}${INSTALL_FILE}" ]
    then
    if [ -d "${TMP_FILE_PATH}${INSTALL_FILE}" ]
    then
    rm -f -R "${TMP_FILE_PATH}" | tee -a ${LOG_PATH}
    fi
    mkdir -p "${TMP_FILE_PATH}${INSTALL_FILE}" | tee -a ${LOG_PATH}
    chmod a+wr -R "${TMP_FILE_PATH}${INSTALL_FILE}"
    
    if [ "${CURRENTPATH}" = "." ]                     #if current path is . the .bin will copy failed
    then 
    cp -f -R "${CURRENTPATH}" "${TMP_FILE_PATH}${INSTALL_FILE}" | tee -a ${LOG_PATH}
    else
    cp -f -R "${CURRENTPATH}" "${TMP_FILE_PATH}" | tee -a ${LOG_PATH}
    fi
    fi
    #cp -f "${CURRENTPATH}${DATACARD_VERIFY}" "${TMP_FILE_PATH}${INSTALL_FILE}" >>/dev/null 2>&1
    #cp -f "${CURRENTPATH}${SYSCONFIG_PATH}" "${TMP_FILE_PATH}${INSTALL_FILE}" >>/dev/null 2>&1
    #cp -f "${CURRENTPATH}${ZIP_FILE}" "${TMP_FILE_PATH}${INSTALL_FILE}" >>/dev/null 2>&1
    #cp -f -R "${CURRENTPATH}${READ_ME_FILE}" "${TMP_FILE_PATH}${INSTALL_FILE}" >>/dev/null 2>&1
    #echo "${CURRENTPATH}${MBB_BIN_FILE}"
    #cp -f -R "${CURRENTPATH}${MBB_BIN_FILE}" "${TMP_FILE_PATH}${INSTALL_FILE}" >>/dev/null 2>&1
    #read cmo
    chmod a+wrx -R "${TMP_FILE_PATH}${INSTALL_FILE}"

    if [ ! -f "${TMP_FILE_PATH}${INSTALL_FILE}${MBB_BIN_FILE}" ]
    then
    {
        echo "copy .bin file failed ..." | tee -a ${LOG_PATH}
        install_exit
    }
    fi
    
    mkdir -p "${TMP_FILE_PATH}${INSTALL_FILE}${MBB_FILE}" | tee -a ${LOG_PATH}
    chmod a+wrx "${TMP_FILE_PATH}${INSTALL_FILE}${MBB_FILE}"
    cd "${TMP_FILE_PATH}${INSTALL_FILE}${MBB_FILE}"
    "${TMP_FILE_PATH}${INSTALL_FILE}${ZIP_FILE}" x -y "${TMP_FILE_PATH}${INSTALL_FILE}${MBB_BIN_FILE}" | tee -a ${LOG_PATH} > /dev/null 2>&1
    echo "copy end ..." | tee -a ${LOG_PATH}
}

check_file()
{
    echo "" | tee -a ${LOG_PATH}
    echo "install begin... " | tee -a ${LOG_PATH}

    if [ ! -f "${CURRENTPATH}${SYSCONFIG_PATH}" ]
    then   
    echo "the ArConfig.dat file is not exist! " | tee -a ${LOG_PATH}
    install_exit     
    fi

    if [ ! -f "${CURRENTPATH}${ZIP_FILE}" ]
    then   
    echo "the 7zr file is not exist! " | tee -a ${LOG_PATH}
    install_exit
    fi

    if [ ! -f "${CURRENTPATH}${MBB_BIN_FILE}" ]
    then   
    echo "the .bin file is not exist! " | tee -a ${LOG_PATH}
    install_exit
    fi
} 

check_first_install()
{
    if [ ! -d "${INSTALL_PATH}" ]
    then
    echo "${INSTALL_PATH} is not exist " | tee -a ${LOG_PATH}
    FIRST_INSTALL="YES"
    return
    fi

    if [ ! -f "${INSTALL_PATH}${MBB_FILE}" -o ! -f "${INSTALL_PATH}${SYSCONFIG_PATH}" ]
    then
    echo "${INSTALL_PATH}${MBB_FILE} '&' ${INSTALL_PATH}${SYSCONFIG_PATH} is not exist " | tee -a ${LOG_PATH}
    FIRST_INSTALL="YES"
    return
    fi
}

yes_or_no()
{
    DEFVAL="Y"
    DEFPMPT="([Y]/N):\c "
    echo -e "${DEFPMPT}"
    read ANS
    while [ "${ANS}" != "Y" -a "${ANS}" != "y" -a "${ANS}" != "N" -a "${ANS}" != "n" -a ! -z "${ANS}" -a "${ANS}" != "\n" ]
    do
        echo -e "${DEFPMPT}"
        read ANS
    done
    : ${ANS:="${DEFVAL}"}
    if [ "${ANS}" != "Y" -a "${ANS}" != "y" ]
    then
        unset ANS
        return 1
    fi
    unset ASN
    return 0
}

verify_version()
{
    echo "the Mobile Broad HL Service has been installed before. " | tee -a ${LOG_PATH}
    echo "now begin to verify version ... " | tee -a ${LOG_PATH}
    INSTALLING_VERSION=$(grep "${SYSCONFIG_VALUE}" "${CURRENTPATH}${SYSCONFIG_PATH}" | head -n1 | cut -d = -f2 | tr -d "\015")
    INSTALLED_VERSION=$(grep "${SYSCONFIG_VALUE}" "${INSTALL_PATH}${SYSCONFIG_PATH}" | head -n1 | cut -d = -f2 | tr -d "\015")
    echo "the INSTALLED version is : ${INSTALLED_VERSION}" | tee -a ${LOG_PATH}   
    echo "the INSTALLING version is : ${INSTALLING_VERSION}" | tee -a ${LOG_PATH}

    VRVERSIONINSTALLED=`echo $INSTALLED_VERSION | cut -d '.' -f1`
    BUILDVERSIONINSTALLED=`echo $INSTALLED_VERSION | cut -d '.' -f2`
    DEVELOPVERSIONINSTALLED=`echo $INSTALLED_VERSION | cut -d '.' -f3`
    SPVERSIONINSTALLED=`echo $INSTALLED_VERSION | cut -d '.' -f4`
    CUSTOMIZEVERSIONINSTALLED=`echo $INSTALLED_VERSION | cut -d '.' -f5`
        
    VRVERSIONINSTALLING=`echo $INSTALLING_VERSION | cut -d '.' -f1`
    BUILDVERSIONINSTALLING=`echo $INSTALLING_VERSION | cut -d '.' -f2`
    DEVELOPVERSIONINSTALLING=`echo $INSTALLING_VERSION | cut -d '.' -f3`
    SPVERSIONINSTALLING=`echo $INSTALLING_VERSION | cut -d '.' -f4`
    CUSTOMIZEVERSIONINSTALLING=`echo $INSTALLING_VERSION | cut -d '.' -f5`
    
        while [ 1 ]
        do
            if [ $CUSTOMIZEVERSIONINSTALLED -ne $CUSTOMIZEVERSIONINSTALLING ]
            then
            echo -e "${DIFFERENT_VERSION_CONFIRM}\c" | tee -a ${LOG_PATH}

            yes_or_no
            
              if [ ! ${?} -ne 0 ]
              then
              INSTALL_OR_NOT="YES"
              echo "yes/install..." | tee -a ${LOG_PATH}
              #backup_ISO
              #install_mbbservice
              break
              else
              echo "no/exit..." | tee -a ${LOG_PATH}
              break
              fi
           fi

            if [ $VRVERSIONINSTALLED -gt $VRVERSIONINSTALLING ]
            then
            echo -e "${DIFFERENT_VERSION_CONFIRM}\c" | tee -a ${LOG_PATH}

            yes_or_no
            
              if [ ! ${?} -ne 0 ]
              then
              INSTALL_OR_NOT="YES"
              echo "yes/install..." | tee -a ${LOG_PATH}
              #backup_ISO
              #install_mbbservice
              break
              else
              echo "no/exit..." | tee -a ${LOG_PATH}
              break
              fi

            break
            elif [ $VRVERSIONINSTALLED -lt $VRVERSIONINSTALLING ]
            then
            echo -e "${NEW_VERSION_CONFIRM}\c" | tee -a ${LOG_PATH}

            yes_or_no
            
              if [ ! ${?} -ne 0 ]
              then
              INSTALL_OR_NOT="YES"
              echo "yes/install..." | tee -a ${LOG_PATH}
              #backup_ISO
              #install_mbbservice
              break
              else
              echo "no/exit..." | tee -a ${LOG_PATH}
              break
              fi
            
            break
            fi
                       
            if [ $BUILDVERSIONINSTALLED -gt $BUILDVERSIONINSTALLING ]
            then
            echo -e "${DIFFERENT_VERSION_CONFIRM}\c" | tee -a ${LOG_PATH}

            yes_or_no
            
              if [ ! ${?} -ne 0 ]
              then
              INSTALL_OR_NOT="YES"
              echo "yes/install..." | tee -a ${LOG_PATH}
              #backup_ISO
              #install_mbbservice
              break
              else
              echo "no/exit..." | tee -a ${LOG_PATH}
              break
              fi

            break
            elif [ $BUILDVERSIONINSTALLED -lt $BUILDVERSIONINSTALLING ]
            then
            echo -e "${NEW_VERSION_CONFIRM}\c" | tee -a ${LOG_PATH}

            yes_or_no
            
              if [ ! ${?} -ne 0 ]
              then
              INSTALL_OR_NOT="YES"
              echo "yes/install..." | tee -a ${LOG_PATH}
              #backup_ISO
              #install_mbbservice
              break
              else
              echo "no/exit..." | tee -a ${LOG_PATH}
              break
              fi
            
            break
            fi 
            
            if [ $DEVELOPVERSIONINSTALLED -gt $DEVELOPVERSIONINSTALLING ]
            then
            echo -e "${DIFFERENT_VERSION_CONFIRM}\c" | tee -a ${LOG_PATH}

            yes_or_no
            
              if [ ! ${?} -ne 0 ]
              then
              INSTALL_OR_NOT="YES"
              echo "yes/install..." | tee -a ${LOG_PATH}
              #backup_ISO
              #install_mbbservice
              break
              else
              echo "no/exit..." | tee -a ${LOG_PATH}
              break
              fi
            
            break
            elif [ $DEVELOPVERSIONINSTALLED -lt $DEVELOPVERSIONINSTALLING ]
            then
            echo -e "${NEW_VERSION_CONFIRM}\c" | tee -a ${LOG_PATH}

            yes_or_no
            
              if [ ! ${?} -ne 0 ]
              then
              INSTALL_OR_NOT="YES"
              echo "yes/install..." | tee -a ${LOG_PATH}
              #backup_ISO
              #install_mbbservice
              break
              else
              echo "no/exit..." | tee -a ${LOG_PATH}
              break
              fi
            
            break
            fi
            
            if [ $SPVERSIONINSTALLED -gt $SPVERSIONINSTALLING ]
            then
            echo -e "${DIFFERENT_VERSION_CONFIRM}\c" | tee -a ${LOG_PATH}

            yes_or_no
            
              if [ ! ${?} -ne 0 ]
              then
              INSTALL_OR_NOT="YES"
              echo "yes/install..." | tee -a ${LOG_PATH}
              #backup_ISO
              #install_mbbservice
              break
              else
              echo "no/exit..." | tee -a ${LOG_PATH}
              break
              fi
            
            break
            elif [ $SPVERSIONINSTALLED -lt $SPVERSIONINSTALLING ]
            then
            echo -e "${NEW_VERSION_CONFIRM}\c" | tee -a ${LOG_PATH}

            yes_or_no
            
              if [ ! ${?} -ne 0 ]
              then
              INSTALL_OR_NOT="YES"
              echo "yes/install..." | tee -a ${LOG_PATH}
              #backup_ISO
              #install_mbbservice
              break
              else
              echo "no/exit..." | tee -a ${LOG_PATH}
              break
              fi

            break
            fi

            echo -e  "${REINSTALL_CONFIRM}\c" | tee -a ${LOG_PATH}            
            yes_or_no
            
              if [ ! ${?} -ne 0 ]
              then
              INSTALL_OR_NOT="YES"
              echo "yes/install..." | tee -a ${LOG_PATH}
              #backup_ISO
              #install_mbbservice
              break
              else
              echo "no/exit..." | tee -a ${LOG_PATH}
              break
              fi
        done
}

install_mbbservice()
{
    echo "begin to install ..." | tee -a ${LOG_PATH}
    if [ "$(pidof mbbservice)" != "" ]      
    then
    kill -9 $(pidof mbbservice)
    fi

    if [ -d "${INSTALL_PATH}" ]
    then
    rm -f -R "${INSTALL_PATH}"
    mkdir "${INSTALL_PATH}" | tee -a ${LOG_PATH}
    else
    mkdir "${INSTALL_PATH}" | tee -a ${LOG_PATH}
    fi

    if [ -d "${INSTALL_PATH}" ]
    then
    cp ./* "${INSTALL_PATH}" | tee -a ${LOG_PATH}
    chmod a+x -R "${INSTALL_PATH}"
    else
    echo "mkdir in install path failed " | tee -a ${LOG_PATH}
    fi
 
    if [ "$(which udevadm)" != "" ]
    then
	udevVer=`udevadm version`
    else
	udevVer=`udevinfo -V | awk '{print $3}'`    
    fi

    if [ $udevVer -ge 098 ]    
    then
    echo "udevVer=$udevVer" | tee -a ${LOG_PATH} > /dev/null 2>&1
    cp "${INSTALL_PATH}/10-Huawei-FlashCard.rules" "/etc/udev/rules.d" | tee -a ${LOG_PATH}
    udevVerrule="10-Huawei-FlashCard.rules"
    chmod a+x /etc/udev/rules.d/10-Huawei-FlashCard.rules
    else
    echo "udevVer=$udevVer" | tee -a ${LOG_PATH}
    cp "${INSTALL_PATH}/10-Huawei-FlashCard-old.rules" "/etc/udev/rules.d" | tee -a ${LOG_PATH}
    udevVerrule="10-Huawei-FlashCard-old.rules"   
    chmod a+x /etc/udev/rules.d/10-Huawei-FlashCard-old.rules
    fi

    if [ -d "/lib/udev/rules.d" ]
    then
    cp /etc/udev/rules.d/"${udevVerrule}" /lib/udev/rules.d/ | tee -a ${LOG_PATH}
    fi
    if [ "$(cat /etc/issue |grep Flag)" != "" ]
    then
    start_udev
    fi

    #install the configuration file for auto run in boot
    sed "s#CURPATH#${INSTALL_PATH}#g" "$INSTALL_PATH"/skeleton > "$INSTALL_PATH"/skeleton.bak | tee -a ${LOG_PATH}     

    sed "s#parameter##g" "$INSTALL_PATH"/skeleton.bak > "$INSTALL_PATH"/"$SKELETON_NAME" | tee -a ${LOG_PATH}

    rm -f "$INSTALL_PATH"/skeleton.bak | tee -a ${LOG_PATH}

    if [ -d /etc/init.d ]
    then
    cp -f "$INSTALL_PATH"/"$SKELETON_NAME" /etc/init.d/ | tee -a ${LOG_PATH}
    chmod a+x /etc/init.d/"$SKELETON_NAME"
    CONFPATH=/etc/init.d
    elif [ -d /etc/rc.d ]
    then
    cp -f "$INSTALL_PATH"/"$SKELETON_NAME" /etc/rc.d/ | tee -a ${LOG_PATH}
    chmod a+x /etc/rc.d/"$SKELETON_NAME"
    CONFPATH=/etc/rc.d
fi

#echo "rm -f $CONFPATH/$CONFNAME" >> "$INSTALL_PATH"/driver/Uninstall

#use command
for ADDRUNLEVEL in `find /etc/ -name "rc[2345].d" -type d`;
do
    echo "ADDRUNLEVEL=$ADDRUNLEVEL" | tee -a ${LOG_PATH} > /dev/null 2>&1
    if [ -d $ADDRUNLEVEL ] ; 
    then
        if [ -L "$ADDRUNLEVEL/$START_SKELETON" ] ; 
        then              
            rm -f $ADDRUNLEVEL/$START_SKELETON | tee -a ${LOG_PATH}
            rm -f $ADDRUNLEVEL/$STOP_SKELETON | tee -a ${LOG_PATH}
        fi
        ln -sv $CONFPATH/$SKELETON_NAME $ADDRUNLEVEL/$START_SKELETON | tee -a ${LOG_PATH} > /dev/null 2>&1
        chmod a+x $ADDRUNLEVEL/$START_SKELETON
        ln -sv $CONFPATH/$SKELETON_NAME $ADDRUNLEVEL/$STOP_SKELETON | tee -a ${LOG_PATH} > /dev/null 2>&1
        chmod a+x $ADDRUNLEVEL/$STOP_SKELETON
    
        #echo "rm -f $ADDRUNLEVEL/$START_CONFNAME" >> "$INSTALL_PATH"/driver/Uninstall                     
        #echo "rm -f $ADDRUNLEVEL/$STOP_CONFNAME" >> "$INSTALL_PATH"/driver/Uninstall
    fi
done

if [ -f /etc/init.d/.depend.start ]
then
    rm -f /etc/init.d/.depend.start | tee -a ${LOG_PATH}
    rm -f /etc/init.d/.depend.stop | tee -a ${LOG_PATH}
    chkconfig -a runmbbservice | tee -a ${LOG_PATH}
fi

    rm -rf "${TMP_FILE_PATH}" | tee -a ${LOG_PATH}
    echo "install success..." 
    
}

run_process()
{
    if [ "$(pidof mbbservice)" != "" ]       
    then
    echo "the mbbservice is running "
    else
    echo "${INSTALL_PATH}${MBB_FILE}" | tee -a ${LOG_PATH}
    #may be there is some question without quote
    ${INSTALL_PATH}${MBB_FILE} & 
    sleep 2
    fi    
}

check_file
check_first_install

if [ "${FIRST_INSTALL}" = "YES" ]
then
copy_local
else
verify_version
if [ "${INSTALL_OR_NOT}" = "YES" ]
then
copy_local
fi
fi

if [ "${INSTALL_OR_NOT}" = "YES" -o "${FIRST_INSTALL}" = "YES" ]
then
#echo "begin to install..."
install_mbbservice
fi
cd /
#TESTPATH=`pwd`
#echo "${TESTPATH}"
echo "run the process... " | tee -a ${LOG_PATH}
run_process
echo "install end... "
install_exit

#read com


linux_install Skript:


PHP:
#!/bin/bash

#VERSION=22.001.03.01.03

install_exit()
{
    echo "Preass any key to exit. "
    read COMMAND
    exit
}

WHEREWHOAMI="`which whoami`"
ROOTORNOT="`$WHEREWHOAMI`"
#echo "$ROOTORNOT"
if [ "$ROOTORNOT" != "root" ]
then
    echo "You must run the install process by root."
    install_exit
fi

CURRENTPATH="$(dirname "$0")"
#echo "$CURRENTPATH"
TMP_FILE_PATH="/tmp/MobileBrServ_AutoRun"
INSTALL_FILE="/linux_mbb_install"
SYSCONFIG_PATH="/ArConfig.dat"
INSTALL_SHELL="/install"
DATACARD_VERIFY="/DataCard_Verify"
MBB_BIN_FILE="/mbbservice.bin"
MBB_FILE="/mbbservice"
SYSCONFIG_VALUE="VALUE"

INSTALL_PATH="/usr/local/MobileBrServ"

LOG_PATH="/tmp/MobileBrServ_autoinstall_log"

#define the install variable
FIRST_INSTALL="NO"
INSTALL_OR_NOT="NO"

echo "Current path = ${CURRENTPATH}" > ${LOG_PATH}

check_ISO()
{
    echo "begin to verify ISO ..." | tee -a ${LOG_PATH} #> /dev/null 2>&1
    #TESTFILE="${CURRENTPATH}"
    #echo "$TESTFILE"
    #read COMMAND
    if [ ! -f "${CURRENTPATH}${INSTALL_FILE}${MBB_BIN_FILE}" ]
    then
    echo "${CURRENTPATH}${INSTALL_FILE}${MBB_BIN_FILE}"
    echo "the .bin file is not exist! " | tee -a ${LOG_PATH}
    install_exit
    fi

    if [ ! -f "${CURRENTPATH}${INSTALL_FILE}${SYSCONFIG_PATH}" ]
    then
    echo "the ArConfig.dat file is not exist! " | tee -a ${LOG_PATH}
    install_exit
    fi 
    echo "verify the ISO succeed !" | tee -a ${LOG_PATH}  
}



backup_ISO()
{
    echo "begin to copy install file..." | tee -a ${LOG_PATH}
    
    if [ -d "${TMP_FILE_PATH}" ]
    then
    rm -f -R "${TMP_FILE_PATH}"
    fi

    mkdir -p "${TMP_FILE_PATH}"    
    cp -f -R "${CURRENTPATH}${INSTALL_FILE}" "${TMP_FILE_PATH}${INSTALL_FILE}"
    chmod a+wrx -R "${TMP_FILE_PATH}${INSTALL_FILE}"
    sleep 1
}

x_install_mbbservice()
{
    echo "now begin to install... " | tee -a ${LOG_PATH}

    #read cmo
    export DISPLAY=":0"
    if which xterm;
    then
        echo "Run xterm and begin to install" | tee -a ${LOG_PATH}
        TERMINAL=`which xterm`
        ${TERMINAL} '-e' "${TMP_FILE_PATH}${INSTALL_FILE}${INSTALL_SHELL}"
        echo "Exit install and remove temporary files" | tee -a ${LOG_PATH}
        exit 0
        #install_exit
    fi
    
    if which gnome-terminal;
    then
        echo "Run gnome-terminal and begin to install" | tee -a ${LOG_PATH}
        TERMINAL=`which gnome-terminal`
        ${TERMINAL} '-e' "${TMP_FILE_PATH}${INSTALL_FILE}${INSTALL_SHELL}"
        echo "Exit install and remove temporary files" | tee -a ${LOG_PATH}
        exit 0
        #install_exit
    fi
    
    if which konsole;
    then
        echo "Run konsole and begin to install" | tee -a ${LOG_PATH}
        TERMINAL=`which konsole`
        ${TERMINAL} '-e' "${TMP_FILE_PATH}${INSTALL_FILE}${INSTALL_SHELL}"
        echo "Exit install and remove temporary files" | tee -a ${LOG_PATH}
        exit 0
        #install_exit
    fi

    echo "Run shell and begin to install" | tee -a ${LOG_PATH}
    "${TMP_FILE_PATH}${INSTALL_FILE}${INSTALL_SHELL}"
    echo "Exit install and remove temporary files" | tee -a ${LOG_PATH}
    exit 0
    #install_exit
}

check_ISO
#check_first_install
#if [ "${FIRST_INSTALL}" = "YES" ]
#then
backup_ISO
x_install_mbbservice
#else
#verify_version
#fi
#read mo
 

glako

Eala Frya Fresena!
Beiträge
165
Ist das Script denn ausführbar?
 

art4core

Mitglied
Beiträge
28
Nein,keines der Skripte ist ausführbar.

Aber nachdem ich mittlerweile mit einem Laptop und diversen Livesystemen problemlos Ins Mobilnetz kam,
vermute ich die Ursache doch wohl eher bei meinem beiden Desktoprechnern.

Wenngleichs mir etwas eigenartig vorkommt.


Denn mit einem E1550 Modem komme ich mit beiden Pc´s ins Netz -E1550 nutzt nm-applet(mob.Breitband),
während sich das E353 als Wired Connection (HiLink) ins System einbringt.

Daher die Frage:wäre es denkbar,dass es dennoch am Usb Controller beider Pc´s liegt oder
könnte das System manipuliert worden sein?

Fragen über Fragen ich weiss,die Du Glako oder jemand anderer vielleicht klären kann.
 

glako

Eala Frya Fresena!
Beiträge
165
Da fällt mir auf, wieso wird das Teil als Datenträger erkannt?
Hast Du usbmodeswitch installiert?
 

art4core

Mitglied
Beiträge
28
Kann ich nicht sagen,da ich wie gesagt mit verschiedenen Livesystem am Laptop gestartet habe.
Auf den anderen beiden Rechnern mit DreamStudio(Ubuntu/Debian Mix) da ist usbmodeswitch installiert.
Es erscheint am Desktop ein Icon das einer Cd ähnelt und die obgenannten Ordner enthält.

Würde es Sinn machen usbmodeswitch zu entfernen-vorausgesetzt es gefährdet nicht das System?
Falls ja,wie müsste ich das machen?
 
N

nighT

Gast
Ich habe schon öfters erlebt, dass UMTS Sticks und evtl. auch Modems zusätzlich einen kleinen Flash-Speicher besitzen, auf dem die Treiber für die Erstinstallation zur Verfügung stehen.

Per Google habe ich spontan diese Anleitung gefunden, die sich mit der Installation des Huawei E353 unter Ubuntu 12.04 befasst. Vielleicht kommst du damit weiter.
 
G

Gast123

Gast
Ich vermute, dass es so sehr wohl funktioniert:
Code:
su
Passwort:
cd /media/HiLink/
chmod +x *
./install_linux

Die Skripte "autorun.sh" bzw "install_linux" lassen auch mit Rootrechten ,also mit vorangestelltem "sudo" nicht starten.
Eine entsprechende Fehlermeldung wäre zur Problemlösung hilfreich.
 

tgruene

Routinier
Beiträge
418
Versuch doch mal, bei sudo den vollen Pfad des install-Skriptes anzugeben, nicht nur './install'. Du kannst auch mal das Modem einstecken, etwa eine Minute warten (die Konfiguration mit usbmodeswitch dauert zumindest bei meinem Laptop ein paar Sekunden) und dann 'sudo wvdialconf' ausfuehren, falls wvdial auf der Live-CD installiert ist.
 

art4core

Mitglied
Beiträge
28
Eigenartigerweise funktioniert das Modem jetzt ohne der ursprünglich darauf gespeicherten Daten bzw Software,welche ich aus Versehen mit einem Livesystem gelöscht hatte ,seltsam :think: aber
möge es so bleiben:brav:

An dieser Stelle mal Danke allen,die sich mit Rat eingestellt hatten
 

Ähnliche Themen

Verschlüsseltes Backup-Script mit rsync

Zugriff Ubuntu 16.04. auf Freigabe 18.04. LTS nicht möglich

Crontab und Scripts - Problem

Shell Skript beschleunigen

HandbrakeCLI Shell Skript

Sucheingaben

hilink.app startet nicht

,

22.001.03.01.03

,

linux mbb install huawei VERSION=22.001.03.01.03

Oben