PC/104平臺嵌入式Linux系統(tǒng)核心定制方法
ROOT=目標(biāo)系統(tǒng)路徑
cd$ROOT
mkdir-pbin boot dev/ptsetc/opt home lib
mntprocrootsbintmpvaropt
for dirname in$ROOT/usr$ROOT/usr/
local
do
mkdir$dirname
cd$dirname
mkdir binetc include lib sbin share src
ln-sshare/man
ln-sshare/doc
ln-sshare/info
cd$dirname/share
mkdir dict doc info locale mannls miscterm info zoneinfo
cd$dirname/share/man
mkdirman{1,2,3,4,5,6,7,8}
done
cd$ROOT/var
mkdir-plock log mail run spool tmp opt
cachelib/misclocal
cd$ROOT/opt
mkdir bin doc include info lib man
cd$ROOT/usr
ln-s11/var/tmp
cd$ROOT
chmod0750root
chmod1777tmpvar/tmp
評論