泰山派_运行库
配置库的路径 vi /etc/profile
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/nfs/nfs_root/lib:/lib/rk_lib"启动脚本 vi /etc/init.d/rcS, 挂载nfs
shell
#!/bin/sh
ifconfig eth0 up
ifconfig eth0 192.168.0.150 netmask 255.255.255.0
mount -t nfs -o nfsvers=3,nolock 192.168.0.200:/home/shelton/Workspaces/projects /mnt
# Start all init scripts in /etc/init.d
# executing them in numerical order.
#
for i in /etc/init.d/S??* ;do
# Ignore dangling symlinks (if any).
[ ! -f "$i" ] && continue
case "$i" in
*.sh)
# Source shell script for speed.
(
trap - INT QUIT TSTP
set start
. $i
)
;;
*)
# No sh extension, so fork subprocess.
$i start
;;
esac
done