# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
PATH=/bin:/sbin:/usr/bin:/usr/sbin
export PATH
mount -a > /dev/null 2>&1 //请问此处表示什么意思?
stty intr ""
stty quit ""
ifconfig lo 127.0.0.1 > /dev/null 2>&1
server_ip=`cut -d: -f2 /proc/cmdline`
echo "$server_ip tgihost" > /etc/hosts
clear //起什么作用
# download profile
tftp -g -r bashtgic.sh -l bashtgic.sh tgihost //请问此处是什么用处?
if [ $? -ne 0 ]; then
echo "fail to download bashtgic.sh"
else
mv bashtgic.sh /etc/profile.d/
chmod 755 /etc/profile.d/bashtgic.sh
fi
# download init data
echo "Issue UPDATE_INIT...."
if [ ! -x /usr/sbin/NC_UPDATE.SH ]; then
echo "Not Found NC_UPDATE.SH"
sleep 2
else
/usr/sbin/NC_UPDATE.SH
fi
# download the data
echo "SUCCESS UPDATE!!!"
stty brkint
# end download data
[ 本帖最后由 tianhailong 于 2008-11-21 15:31 编辑 ]作者: 我是DBA 时间: 2008-11-21 15:19
mount -a [-t|-O] ... : mount all stuff from /etc/fstab