#確認(rèn)掛載df -h#創(chuàng)建使用的目錄mkdir /mnt/sda1/openwrt
]# vim /etc/opkg.confdest root /dest usb /mnt/sda1/openwrt #添加的內(nèi)容,指定路徑dest ram /tmplists_dir ext /var/opkg-listsoption overlay_root /overlayoption check_signature
]# vim /etc/profile#紅色的是添加的內(nèi)容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" #可執(zhí)行文件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 #重啟生效