崔永元炮轰范冰冰⼩⽶路由器pro装php,关于路由器:⼩⽶路由器proR3P安装
opkg
前提:
· R3P路由器已开启ssh(办法可见)
确认路由器架构信息root@XiaoQiang:~# cat /etc/openwrt_release
DISTRIB_ID="OpenWrt"
DISTRIB_RELEASE="Attitude Adjustment"
DISTRIB_REVISION="unknown"
DISTRIB_CODENAME="attitude_adjustment"
DISTRIB_TARGET="ramips/mt7621" #此处显⽰路由器的架构信息
DISTRIB_DESCRIPTION="OpenWrt Attitude Adjustment 12.09.1"
装置opkg上古玦尘小说
· 应⽤/opt门路(原脚本指定)装置
ssh 192.168.31.1
mkdir -p /userdisk/opkg/opt
mount -o bind /userdisk/opkg/opt /opt #会笼罩/opt原有内容,按需应⽤
怎么炖鸡汤cd /userdisk/opkg
chmod +x installer.sh
./installer.sh
echo "export PATH=${dir}sbin:${dir}bin:"'$PATH' >> /etc/profile
source /etc/profile
#不应⽤时卸载门路(重启也可)
ummount /opt
· ⾃定义门路装置(未测试)root@XiaoQiang:~# ls /opt/
filetunnel plugin_sandbox
因为不晓得/opt⽬录中已存在的上边两个⽬录是做什么的,
为了不影响原有⽂件构造,有了这个思路,
其实就是替换了/opt/的门路。
未经测试,请⾃⾏测试
未经测试,请⾃⾏测试
未经测试,请⾃⾏测试ssh 192.168.31.1
dir='/userdisk/opkg/'
贾青恋情曝光mkdir -p $dir央视处理朱军
cd $dir
chmod +x installer.sh
sed -i "s%/opt/%${dir}%g" installer.sh
sed -i "/installation/i dir=${dir}" installer.sh
sed -i '/installation/i for f in `grep -rl "/opt/" $dir`; do sed -i "s%/opt/%${dir}%g" $f; done' installer.sh ./installer.sh
echo "export PATH=${dir}sbin:${dir}bin:"'$PATH' >> /etc/profile
source /etc/profile
刘铠威opkg updata
发布评论