|
v-far
发表于 2014-6-29 23:33
来自 中国广东深圳
- #!/bin/sh
- # Make aria2 & transmission dir
- mkdir -p /shares/Download/PTDownload
- mkdir -p /shares/Dooad/PTDownload/.incomplete
- mkdir -p /shares/Download/TDDownload
- mkdir -p /shares/Public/Torrents
- # Install optware
- tar zxvf /shares/Public/opt.tar.gz -C /
- # ln -s /DataVolume/opt /opt
- # Make optware autorun
- echo "export PATH=$PATH:/opt/bin:/opt/sbin" >> /root/.bashrc
- echo "export PATH=$PATH:/opt/bin:/opt/sbin" >> /etc/profile
- # wget -P /etc/init.d http://mybookworld.wikidot.com/local--files/optware/optware.sh
- # copy local sh
- unalias cp
- cp /shares/Public/optware.sh /etc/init.d/
- alias cp='cp -i'
- # copy end
- chmod +x /etc/init.d/optware.sh
- # for MBWE stock fw
- # ln -s optware.sh /etc/init.d/S90optware
- # ln -s optware.sh /etc/init.d/K01optware
- update-rc.d optware.sh defaults 90 01
- /etc/init.d/optware.sh restart
- # install yaaw
- cd /var/www/
- tar -zxvf /shares/Public/yaaw.tar.gz
- # installed
复制代码
发个自己的,参考下吧...这个来源于 天马行空 的安装脚本
|
|