找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 8724|回复: 32

优酷固件利用以下函数禁用了usb缓存,如何破?

[复制链接]
发表于 2016-8-20 00:38 | 显示全部楼层 |阅读模式
#!/bin/sh
#=============================================================================
#  Copyright (c) YOUKU, 2014. All rights reserved.
#
#  @author    yang <yangjingyu@youku.com>
#
#  @brief     
#
#  Revision History:
#=============================================================================

export YoukuHome="/tmp/youku"

##################################################################
ylog()
{
    #format: /etc/youku/rc.main ylog "logstring"
    [ -n "$@" ] &&  echo `date +%Y-%m-%d-%H-%M-%m`"  $@" | tee -ai /tmp/boot.log
}

help()
{
    cat <<EOF
    Syntax: $action
    Available commands:
    start       Start all youku services
    stop        Stop  all youku services
    ikuacc      start|stop
    tf      mount|umount dectect TF storage card
    usb     mount|umount dectect USB storage disk
    help
EOF
}

_is_L2()
{
    factory=`sn_youku r | cut -c 19-24`
    if [ $factory == '003000' ]; then
        echo 1
    else
        echo 0
    fi
}

_factory()
{
    factory=`sn_youku r | cut -c 19-24`
    echo $factory
}

_device_by_factory()
{
    cat=$1
    fac=$(_factory)
    case $fac in
        000000)
            echo 'mt7620'
        ;;
        000001)
            echo 'mt7620'
        ;;
        002002)
            if [ $cat == '2g' ]; then
                echo 'mt7620'
            else
                echo 'mt7612'
            fi
        ;;
        003000)
            if [ $cat == '2g' ]; then
                echo 'mt7603e'
            else
                echo 'mt7612e'
            fi
        ;;
        *)
            echo ''
        ;;
    esac
}

##################################################################
#this is invoked by /etc/init.d/youku
start()
{
    ylog "rc.main start ..."

    bootup
    tf mount
    usb mount
    setup

    versionupdate
    youku_luci
    modify_gateway  

    # add by xiongying 2015-03-17
    sysctl -p /etc/youku/sysctl.conf

    # add by xiongying 2015-10-10
    # turn down wan6 interface for dhcp v6 bug
    ubus call network.interface.wan6 down
    uci set network.wan6.proto=none
    uci commit

    # add by xiongying 2016-05-31
    # change default autoch algo 1(ap_cnt)
    local device=$(_device_by_factory '2g')
    local autoch=$(uci get wireless.${device}.autoch)
    [ $autoch == '2' ] && {
        uci set wireless.${device}.autoch=1
        uci commit wireless
        iwpriv ra0 set AutoChannelSel=1
    }

    # FIXME, bug of yktacc
    rmmod yktacc
    rmmod hw_nat

    # enable kernel parameters print.always_kmsg_dump for restart reason
    [ -f /sys/module/printk/parameters/always_kmsg_dump ] && echo 'Y' > /sys/module/printk/parameters/always_kmsg_dump

    # fix pppoe dns problem
    [ -n "`readlink /etc/resolv.conf`" ] && {
        rm -rf /etc/resolv.conf
        touch /etc/resolv.conf
    }

    ylog "rc.main start finished ..."
    return 0
}

stop()
{
    ylog "rc.main stop ..."

    usb umount
    tf  umount

    ylog "rc.main stop finished ..."
    return 0
}

shutdown()
{
    [ -d "$YoukuHome" ] || return 1;

    umount $YoukuHome/data
    umount $YoukuHome
    rm -r  $YoukuHome

    ylog "rc.main shutdown. $@"
    return 0
}

notify()
{
    ylog "rc.main notify $@"
    return 0;
}

###################################################################

bootup()
{
    ylog  `date +%Y-%m-%d-%H-%M-%S`"  rc.main bootup ..."

    [ -d "$YoukuHome" ] && return 0;

    #  ensure youku directory structure and env var.

    #use /tmp/youku/* to point the latest youku app, web, and script.
    # use system tmpfs or ourselves. the later is easy to evaluation memory used.

    mkdir -p $YoukuHome
    mount -t tmpfs tmpfs $YoukuHome -o size=4m

    mkdir -p $YoukuHome/mnt  #used for tf storage card and usb storage
    mkdir -p $YoukuHome/sys

    mkdir -p $YoukuHome/stat
    mkdir -p $YoukuHome/cfg
    mkdir -p $YoukuHome/bin
    mkdir -p $YoukuHome/pub  #used for link shared resources which can be seen out of router.
    mkdir -p $YoukuHome/ver  #used for save version info of firmware and packages.

    mkdir -p $YoukuHome/data #used for storage big size of data.  visit if from  $YoukuHome/var
    mount -t tmpfs tmpfs $YoukuHome/data -o size=4m  #give 4m as default,

    #ln  -sfn $YoukuHome/data $YoukuHome/pkg #redirect $YoukuHome/pkg to tf or usb storage if possible.
    #ln  -sfn $YoukuHome/data $YoukuHome/var #redirect $YoukuHome/var to tf or usb storage if possible.
    ln  -sfn $YoukuHome/data $YoukuHome/tmp #redirect $YoukuHome/tmp to tf or usb storage if possible.
    ln  -sfn $YoukuHome/data $YoukuHome/log

    mkdir -p $YoukuHome/var
    mkdir -p $YoukuHome/var/ikucmc
    mkdir -p $YoukuHome/var/ikuacc/data/
    mkdir -p $YoukuHome/var/agent

    ylog "rc.main bootup finished ..."
    return 0
}

link_dir()
{
    for i in `ls ${2}/${3}`; do
        [ -f ${2}/${3}/${i} ] && {
            ln -fs ${2}/${3}/${i} ${1}/${3}/${i}
        }
        [ -d ${2}/${3}/${i} ] && {
            mkdir -p ${1}/${3}/${i}
            link_dir ${1} ${2} ${3}/${i}
        }
    done
}

init_plugin()
{
    # for plugin needed
    touch /etc/crontabs/root
    /etc/init.d/cron enable
    /etc/init.d/cron start
    return
   
    export PKG_HOME=/tmp/youku/pkg
    export PATH=${PKG_HOME}/bin{PKG_HOME}/sbin{PKG_HOME}/usr/bin/{PKG_HOME}/sbinPATH
    export LD_LIBRARY_PATH=${PKG_HOME}/lib{PKG_HOME}/usr/lib/LD_LIBRARY_PATH
    [ -d ${PKG_HOME} ] && rm -rf ${PKG_HOME}
    [ -d /tmp/youku/mnt/tf1 ] && ln -fsn /tmp/youku/mnt/tf1 ${PKG_HOME}

    [ -d /tmp/youku/mnt/tf1/var ] || mkdir /tmp/youku/mnt/tf1/var
    [ -d $YoukuHome/plugin ] || mkdir $YoukuHome/plugin
    if [ -L $YoukuHome/pkg ]; then
        mount -t overlayfs -o lowerdir=/rom,upperdir=/tmp/youku/mnt/tf1 overlayfs $YoukuHome/plugin
        RETVAL=$?
        if [ $RETVAL = 0 ]; then
            [ -a $YoukuHome/plugin/etc/youku/idinfo ] || cp /etc/youku/idinfo $YoukuHome/plugin/etc/youku/
            [ -d $YoukuHome/plugin/tmp/youku/stat/ ] || mkdir -p $YoukuHome/plugin/tmp/youku/stat
        fi
    fi
    mknod $YoukuHome/plugin/dev/urandom c 1 9
}

setup()
{
    ylog "rc.main setup ..."

    #set default .or when some disk umounted
    [ -L $YoukuHome/bin/youkucmc -a -f "`readlink -f $YoukuHome/bin/youkucmc`" ] || ln -sfn  /usr/sbin/guard $YoukuHome/bin/youkucmc
    [ -L $YoukuHome/bin/ikuacc  -a -f "`readlink -f $YoukuHome/bin/ikuacc`"   ] || ln -sfn  /usr/sbin/ikuacc $YoukuHome/bin/ikuacc
    [ -L $YoukuHome/bin/sn_youku -a -f "`readlink -f $YoukuHome/bin/sn_youku`" ] || ln -sfn  /usr/sbin/sn_youku $YoukuHome/bin/sn_youku
    [ -L $YoukuHome/www -a -d "`readlink -f $YoukuHome/www`" ] || ln -sfn /www/ $YoukuHome/www
    [ -L $YoukuHome/pkg -a -d "`readlink -f $YoukuHome/pkg`" ] || ln -sfn /tmp/youku/mnt/tf1 $YoukuHome/pkg
   
    #let publish resouces can be seen from web
    [ -L $YoukuHome/www/pub -o -d $YoukuHome/www/pub ] || ln -sfn $YoukuHome/pub $YoukuHome/www/pub

    ylog "rc.main setup: cur www path=>[`readlink -f $YoukuHome/www`]"
    ylog "rc.main setup: cur var path=>[`readlink -f $YoukuHome/var`]"

    cd $YoukuHome/mnt
    #get first start partition for meta disk
    for p in `ls $YoukuHome/mnt | grep -e tf -e usb | sort`; do
        size=$((`df -m | grep $YoukuHome/mnt/$p | awk '{print $2}'`))
        # TODO only check size, should check r/w ability
        [ ${size} -gt 100 ] && {
            metadisk=${YoukuHome}/mnt/$p
        
            if [ "${metadisk}/meta" != "`readlink -f ${YoukuHome}/var/ikuacc/meta`" ]; then
                mkdir -p ${metadisk}/meta
                [ -d ${YoukuHome}/var/ikuacc/meta ] && cp -rfp ${YoukuHome}/var/ikuacc/meta/* ${metadisk}/meta
                ln -sfn ${metadisk}/meta ${YoukuHome}/var/ikuacc/meta
            fi

            # TODO check what this use for...
            if [ "`readlink -f $YoukuHome/pkg`" != "${metadisk}/youku/bin" ]; then
                #mkdir -p ${metadisk}/youku/bin
                #ln -sfn  ${metadisk}/youku/bin $YoukuHome/pkg
                mkdir -p ${metadisk}/youku/tmp
                ln -sfn  ${metadisk}/youku/tmp $YoukuHome/tmp
                mkdir -p ${metadisk}/youku/log
                ln -sfn  ${metadisk}/youku/log $YoukuHome/log
                ylog "rc.main setup: set pkg path=>[size=$size Mb,${metadisk}/youku/bin"
                ylog "rc.main setup: set tmp path=>[size=$size Mb,${metadisk}/youku/tmp"
            fi

            break
        }
    done

    #mount data0~data3
    cnt=0
    for p in `ls $YoukuHome/mnt | grep -e tf | sort`; do
        partsize=$((`df -m | grep $YoukuHome/mnt/$p | awk '{print $2}'`))
        [ ${partsize} -gt 500 ] && {
            ln -sfn $YoukuHome/mnt/$p $YoukuHome/var/ikuacc/data/data${cnt}
            cnt=$((${cnt}+1))
        }
    done

    cd $YoukuHome/tmp

    ylog "rc.main setup finished ..."
    return 1
}

partition_sd()
{
    ylog "rc.main partition ..."

    num=0
    for devfile in `ls /dev/ | grep mmcblk | grep p`; do
        num=$((${num}+1))
    done
    BTYPE=$(block info | grep mmcblk0p2 | awk -F 'TYPE=' '{print $2}')
    if [ $BTYPE = "vfat" ]; then
        mkfs.ext2 /dev/mmcblk0p2
    fi
    # change repartition condition from eq 7 to lt 4
    if [ ${num} -lt 4 ]; then
        ylog "new partition begin ..."
        sdcard=`ls /dev/ | grep -w mmcblk0`
        mkfs.vfat /dev/${sdcard}
        fdisk /dev/${sdcard} << EOF
m
p
n
p
1

+128M
n
p
2

+128M
n
p
3

+2G
n
e
4


n

+2G
n

+2G
n


p
w
EOF
        partprobe
        for devfile in `ls /dev/ | grep mmcblk | grep p`; do
            if [ ${devfile} = "mmcblk0p4" ]; then
                continue
            fi
            if [ ${devfile} = "mmcblk0p2" ]; then
                mkfs.ext2 /dev/${devfile}
                continue
            fi
            mkfs.vfat /dev/${devfile}
        done
        ylog "new partition end ..."
    fi

    ylog "rc.main partition finished ..."
}

tf()
{
    ylog "rc.main tf ...[$@]"

    index=0;
    #do mount operation
    if [ "-$1" == "-mount" ]; then
        ###################################################
        #partitions,add by David
        partition_sd
        [ `find /dev/ -type b -name mmcblk* | wc -l` -gt 0 ] || {
            ylog "rc.main tf: no tf device found, exit 1"
            return 1
        }

        for devfile in `ls /dev/ | grep mmcblk | grep p`; do
            mkdir $YoukuHome/mnt/tf$index
            if [ $devfile = "mmcblk0p2" ]; then
                mount  /dev/$devfile $YoukuHome/mnt/tf$index -o errors=continue
            else
                mount  /dev/$devfile $YoukuHome/mnt/tf$index -o errors=continue,umask=000
            fi
            RETVAL=$?
            if [ $RETVAL = 0 ]; then   
                ylog "rc.main tf mounted: /dev/$devfile  ==> $YoukuHome/mnt/tf$index"
                index=$(($index+1))
            else
                ylog "rc.main tf mounted failure: /dev/$devfile  ==> $YoukuHome/mnt/tf$index"
                rmdir $YoukuHome/mnt/tf$index
            fi
        done

        last=$(($index-1))
        for i in `seq 0 $last`; do
            storage_mounted "tf" "$YoukuHome/mnt/tf$i" "$index" "$i"
        done
    fi

    ####################################################
    #do unmount operation
    if [ "-$1" == "-umount" ]; then
        for tfdir in `ls $YoukuHome/mnt/ | grep tf`; do
            umount $YoukuHome/mnt/$tfdir
            rmdir  $YoukuHome/mnt/$tfdir
            #rm     $YoukuHome/pub/$tfdir
            index=$(($index+1))

            ylog "rc.main tf umounted ==> $YoukuHome/mnt/$tfdir"
        done
        # TODO, plugin related task should stop.
        [ -d /tmp/youku/plugin ] && umount /tmp/youku/plugin
    fi

    #setup bin links again if something changed.
    [ $index -gt 0 ] && setup

    #tf related task
    init_plugin

    ylog "rc.main tf finished ...[$@]"
    return 0
}

usb()
{
    ylog "rc.main usb ...[$@]"

    index=0;
    ###################################################
    #do mount operation
    if [ "-$1" == "-mount" ]; then
        [ `find /dev/ -type b -name sd* | wc -l` -gt 0 ] || {
            ylog "rc.main usb: no usb storage device found, exit 1"
            return 1
        }

        for devfile in `ls /dev/ | grep -e sda -e sdb -e sdc`; do
            mkdir $YoukuHome/mnt/usb$index
            mount  /dev/$devfile $YoukuHome/mnt/usb$index  -o errors=continue,umask=000
            RETVAL=$?
            if [ $RETVAL = 0 ]; then   
                ylog "rc.main usb mounted: /dev/$devfile  ==> $YoukuHome/mnt/usb$index"
                index=$(($index+1)) #prepare to mount next
            else
                ylog "rc.main usb mounted failure: /dev/$devfile  ==> $YoukuHome/mnt/usb$index"
                rmdir $YoukuHome/mnt/usb$index
            fi
        done

        last=$(($index-1))
        for i in `seq 0 $last`; do
            storage_mounted "usb" "$YoukuHome/mnt/usb$i" "$index" "$i"
        done
    fi

    ####################################################
    #do unmount operation
    if [ "-$1" == "-umount" ]; then
        for usbdir in `ls $YoukuHome/mnt/ | grep usb`; do
            umount $YoukuHome/mnt/$usbdir
            rmdir  $YoukuHome/mnt/$usbdir
            rm     $YoukuHome/pub/$usbdir
            index=$(($index+1))

            ylog "rc.main usb umounted ==> $YoukuHome/mnt/$usbdir"
        done
    fi

    #setup bin links again if something changed.
    [ $index -gt 0 ] && setup

    ylog "rc.main usb finished ...[$@]"
    return 0;
}


#$1 type: tf, usb
#$2 mount point
#$3 total partitions
#$4 no. of partitions
storage_mounted()
{
    ylog "rc.main storage_mounted ..."

    # forbid external links for security reason by xiongying at 2015-10-19
    ##setup link to external when new partition mounted.
    ##[ -f $2/youku/bin/guard  ]   && ln -sfn  $2/youku/bin/guard    $YoukuHome/bin/youkucmc
    ##[ -f $2/youku/bin/ikuacc ]   && ln -sfn  $2/youku/bin/ikuacc   $YoukuHome/bin/ikuacc
    ##[ -f $2/youku/bin/sn_youku ] && ln -sfn  $2/youku/bin/sn_youku $YoukuHome/bin/sn_youku
    #[ -d $2/youku/www ] &&          ln -sfn  $2/youku/www/         $YoukuHome/www

    #yang,2014-08-27,publish it, only for usb storage device
    [ "$1" == "usb" ] && {
        ylog "rc.main storage_mounted: ln -sf $2  $YoukuHome/pub/$1$4"
        ln -sfn $2  $YoukuHome/pub/$1$4
    }

    #whatever, do init script if have.
    #if [ -d $2 -a -f $2/youku/bin/init ]; then

    #   ylog "rc.main storage_mounted: init script found, do it==> $2/youku/bin/init"
    #   chmod +x $2/youku/bin/init
    #   $2/youku/bin/init
    #   ylog "rc.main storage_mounted: done ==> $2/youku/bin/init"
    #fi

    ylog "rc.main storage_mounted finished ..."
    return 0
}

versionupdate()
{
    firmver="0.0.0.0"  #"0.0.0.0"
    [ -f /etc/youku/build/mainver ] && firmver=`cat /etc/youku/build/mainver`

    version=$firmver  
    cd /etc/youku/build/
    for pkg in `ls /etc/youku/build/ | grep -e youku -e iku `; do
        pkgver=`head -n 1 $pkg | awk -F '-' '{print $1}'`
        version=`echo -n "$version.$pkgver" | awk -F '.' '{if( NF != 8 || $1 > $5 || $1 == $5 && $2 > $6 || $1 == $5 && $2 == $6 && $3 > $7 || $1 == $5 && $2 == $6 && $3 == $7 && $4 > $8 ) {print $1"."$2"."$3"."$4} else {print $5"."$6"."$7"."$8}}'`
    done

    if [ $version != $firmver -o  ! -f /etc/youku/build/mainver ]; then
        echo -n $version > /etc/youku/build/mainver
        ylog "rc.main versionupdate from $firmver to $version"
    fi

    #tell web page system version info.
    mkdir -p $YoukuHome/ver
    # now only the firmware version is the main version to show.
    # by xiongying at 2015-04-27
    cat /etc/youku/build/firmware > $YoukuHome/ver/main

    ylog "rc.main versionupdate ....[`cat $YoukuHome/ver/main`]"
}

# remove ikuacc section by xiongying at 2015-10-19
# remove checksn section by xiongying at 2015-10-19
# remove factory_setup section by xiongying at 2015-10-19

youku_luci()
{
    #Boot execute youku_luci scripts
    [ -f /usr/sbin/macfilter.lua ] &&  /usr/sbin/macfilter.lua  2>/dev/null

    return 0
}

#######################################################
# main :
[ $# -gt 0 ] || return 0

action=$1
shift 1

$action "$@"
RETVAL=$?
exit $RETVAL
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2016-8-20 00:39 | 显示全部楼层
试图把所有TF替换成USB0无效
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-8-20 07:57 | 显示全部楼层
麻烦你多用搜索

点评

楼上的,顺手给个链接啦. 搜索也给个关键字.  详情 回复 发表于 2016-8-20 13:04
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-8-20 13:04 | 显示全部楼层

楼上的,顺手给个链接啦.

搜索也给个关键字.
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2016-8-20 13:09 | 显示全部楼层
广为流传的   /mnt/sda1/huancun:2000   是无效的,不然也不会发帖了

点评

应该在后面加/tmp/youku/mnt/usb0/huancun|7000,路径你最好用mount命令看下自己的路由宝上usb0挂载到哪里了,然后那个7000之前是竖线不是冒号,7000是划分的存储空间,可根据u盘大小自行调整,7000代表差不多7G空间  详情 回复 发表于 2016-9-11 02:40
为何无效?你试过了?我用下来可以啊,系统版本:2.1.0613.8617,拔了TF卡,直接用u盘,一切ok。  详情 回复 发表于 2016-8-20 14:50
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-8-20 14:50 | 显示全部楼层
iluyou 发表于 2016-8-20 13:09
广为流传的   /mnt/sda1/huancun:2000   是无效的,不然也不会发帖了

为何无效?你试过了?我用下来可以啊,系统版本:2.1.0613.8617,拔了TF卡,直接用u盘,一切ok。

点评

修改后怎么保存的我的保存不了  详情 回复 发表于 2017-1-17 14:43
你的2.1.0613.8617下有/etc/guard.conf这个文件?  详情 回复 发表于 2016-8-20 20:40
我是用neiwifi刷官方原版的,可以低保每天100金币,但不能上传  详情 回复 发表于 2016-8-20 17:09
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2016-8-20 17:09 | 显示全部楼层
goldenfox 发表于 2016-8-20 14:50
为何无效?你试过了?我用下来可以啊,系统版本:2.1.0613.8617,拔了TF卡,直接用u盘,一切ok。

我是用neiwifi刷官方原版的,可以低保每天100金币,但不能上传
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-8-20 20:40 | 显示全部楼层
goldenfox 发表于 2016-8-20 14:50
为何无效?你试过了?我用下来可以啊,系统版本:2.1.0613.8617,拔了TF卡,直接用u盘,一切ok。

你的2.1.0613.8617下有/etc/guard.conf这个文件?

点评

新版改路径了,在etc/youku下面。  详情 回复 发表于 2016-8-22 08:58
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-8-20 22:51 | 显示全部楼层
本帖最后由 stbird 于 2016-8-20 22:54 编辑

楼主试试去掉/etc/youku/ubus最后2行的注释.不行的话再试试去掉第4,5两行.我没用u盘,纯猜想.
config ubus ubus_idinfo
        option command /usr/sbin/ubus_idinfo
       
#config ubus ubus_acc
#        option command /usr/sbin/ubus_acc

#config ubus ubus_conf
#        option command /usr/sbin/ubus_conf

config ubus ubus_log
        option command /usr/sbin/ubus_log

#config ubus ubus_update
#        option command /usr/sbin/ubus_update
       
#config ubus ubus_yktacc
#        option command /usr/sbin/ubus_yktacc

点评

好的,有空试试  详情 回复 发表于 2016-8-21 22:57
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-8-21 14:32 | 显示全部楼层
新固件早就改缓存路径了,改缓存路径文件是/etc/youku/guard.conf     缓存路径是/tmp/youku/mnt/usb0,自己改吧

点评

缓存路径是/tmp/youku/mnt/usb0 试了几次 这个路径下 没有mount到usb 求详解 联想mini L1_2.1.0613.8617版本  详情 回复 发表于 2016-9-6 22:32
也试过这个路径,在boot.log中看到 的,但是依然不下载缓存文件,不弄了,newifi不插usb也能低保  详情 回复 发表于 2016-8-21 22:59
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2016-8-21 22:57 | 显示全部楼层
stbird 发表于 2016-8-20 22:51
楼主试试去掉/etc/youku/ubus最后2行的注释.不行的话再试试去掉第4,5两行.我没用u盘,纯猜想.
config ubu ...

好的,有空试试
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2016-8-21 22:59 | 显示全部楼层
哟内1 发表于 2016-8-21 14:32
新固件早就改缓存路径了,改缓存路径文件是/etc/youku/guard.conf     缓存路径是/tmp/youku/mnt/usb0,自 ...

也试过这个路径,在boot.log中看到 的,但是依然不下载缓存文件,不弄了,newifi不插usb也能低保

点评

奇怪,我的mini就直刷路由宝固件,改了guard.conf,然后u盘就能缓存了。  详情 回复 发表于 2016-8-22 08:59
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-8-22 08:58 | 显示全部楼层
stbird 发表于 2016-8-20 20:40
你的2.1.0613.8617下有/etc/guard.conf这个文件?

新版改路径了,在etc/youku下面。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-8-22 08:59 | 显示全部楼层
iluyou 发表于 2016-8-21 22:59
也试过这个路径,在boot.log中看到 的,但是依然不下载缓存文件,不弄了,newifi不插usb也能低保

奇怪,我的mini就直刷路由宝固件,改了guard.conf,然后u盘就能缓存了。

点评

你的guard.conf 修改后的内容是怎样的呢?我学习一下  详情 回复 发表于 2016-8-22 10:25
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2016-8-22 10:25 | 显示全部楼层
goldenfox 发表于 2016-8-22 08:59
奇怪,我的mini就直刷路由宝固件,改了guard.conf,然后u盘就能缓存了。

你的guard.conf 修改后的内容是怎样的呢?我学习一下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-25 18:08

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表