简体   繁体   English

使用脚本后,基于Linux的导航软件无法正常运行(Audi MMI 3g HIGH)

[英]Linux based navigation software not working properly after using script (Audi MMI 3g HIGH)

I used this script to activate maps in my linux based navigation software. 我使用此脚本在基于Linux的导航软件中激活地图。 However, it failed. 但是,它失败了。

#!/bin/ksh

#remount SD as rw
DRVS="sd0 sd1"
for i in $DRVS ; do
if [ -d /fs/$i ] ; then
if [ -e /fs/$i/upd ] ; then
mount -u /fs/$i
mount -u /fs/$i
SDCARD=/fs/$i
echo remount $SDCARD
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SDCARD/utils
fi
fi
done

runtstamp=date +"%m/%d/%Y ""%T"

$SDCARD/utils/showScreen $SDCARD/screens/scriptStart.png
cd $SDCARD
/bin/mount -uw /mnt/efs-system
if test -a /sbin/mme-becker.sh ; then
# check if second install
XX=/usr/bin/grep acios_db.ini /sbin/mme-becker.sh
if [ ! -z "$XX" ]
then
# already installed - uninstall first!
$SDCARD/utils/showScreen $SDCARD/screens/error1.png
/bin/rm -f /tmp/copie_scr.sh
echo > /tmp/copie_scr.sh
exit 0

Now my navigation unit does not see Jukebox partiton, nor SD1 or SD2 or USB. 现在,我的导航单元没有看到自动存储塔分区,也没有看到SD1或SD2或USB。 I think I just have to remount or unmount partitons, but I am not sure about "-u" argument in commands. 我想我只需要重新安装或卸载partitons,但是我不确定命令中的“ -u”参数。 Would it be possible that SD card is unmounted and therefore I cannot activate any scripts or use SD slot at all? SD卡是否有可能被卸载,因此我无法激活任何脚本或完全不使用SD插槽?

replace /fs/ with /mnt/ and add 用/ mnt /替换/ fs /并添加

/bin/rm -f /etc/mmelauncher.cfg
/bin/cp $SDCARD/mmelauncher.cfg /etc/mmelauncher.cfg
chmod 777 /etc/mmelauncher.cfg

to full script + add mmelauncher.cfg to SD card.... 完整脚本+将mmelauncher.cfg添加到SD卡...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM