Skip to content

建议将配置文件.xunlei.lixian.config保存到脚本所在目录 #61

Closed
liukangxu opened this Issue Mar 22, 2012 · 2 comments

2 participants

@liukangxu

RT,在我的DD-WRT上,每次配置文件.xunlei.lixian.config都会被保存到/tmp目录下,一旦路由器重启,就需要重新配置,希望可以将.xunlei.lixian.config和脚本保存在同一目录下

@liukangxu

更正一下,现在默认的保存目录是/tmp/root

@iambus
Owner
iambus commented Mar 22, 2012

默认和脚本保存在一起肯定是不妥的。你可以把.xunlei.lixian.config和.xunlei.lixian.cookies移到到当前目录,或者设置环境变量LIXIAN_HOME,把文件放在LIXIAN_HOME里。我稍后也可以试着把脚本所在目录加到搜索路径中。

  1. if cookie file (.xunlei.lixian.cookies) or config file (.xunlei.lixian.config) exists in current path, use it, otherwise...
  2. if LIXIAN_HOME environment variable is set, use $LIXIAN_HOME/.xunlei.lixian.cookies for cookie file, and $LIXIAN_HOME/.xunlei.lixian.config for config file. otherwise...
  3. use $HOME/.xunlei.lixian.cookies and $HOME/.xunlei.lixian.config
@iambus iambus closed this in 2ce7bcd Mar 23, 2012
@iambus iambus was assigned Mar 23, 2012
This was referenced Mar 31, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.