#确认挂载df -h#创建使用的目录mkdir /mnt/sda1/openwrt
]# vim /etc/opkg.confdest root /dest usb /mnt/sda1/openwrt #添加的内容,指定路径dest ram /tmplists_dir ext /var/opkg-listsoption overlay_root /overlayoption check_signature
]# vim /etc/profile#红色的是添加的内容export LD_LIBRARY_PATH="/mnt/sda1/openwrt/usr/lib:/mnt/sda1/openwrt/lib" #指定库文件export PATH="/usr/sbin:/usr/bin:/sbin:/bin:/mnt/sda1/openwrt/usr/bin:/mnt/sda1/openwrt/usr/sbin" #可执行文件export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6)export HOME=${HOME:-/root} export PS1='\u@\h:\w\$ '
]# source /etc/profile #立即生效或]# reboot #重启生效
联系客服