Fix logging and dhclient script in nbroot2

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10187 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2011-07-28 18:31:30 +00:00
parent 788be6dc1c
commit 233971b604
2 changed files with 4 additions and 2 deletions

View File

@ -25,13 +25,14 @@ elif [ $reason = "BOUND" ]; then
for gw in $new_routers; do
ip route add default via $gw
done
if [ ! -z "$new_log_servers" ]; do
if [ ! -z "$new_log_servers" ]; then
head -n -1 /etc/rsyslog.conf > /etc/rsyslog.conf.new
cp /etc/rsyslog.conf.new /etc/rsyslog.conf
done
fi
for ls in $new_log_servers; do
echo *.* @$ls >> /etc/rsyslog.conf
done
kill -1 `cat /var/run/syslogd.pid`
if [ ! -z "$new_tcode" -a -r "/usr/share/zoneinfo/posix/$new_tcode" ]; then
cp "/usr/share/zoneinfo/posix/$new_tcode" /etc/localtime

View File

@ -63,6 +63,7 @@ openssl genrsa -out /etc/xcat/privkey.pem 1024
PUBKEY=`openssl rsa -in /etc/xcat/privkey.pem -pubout|grep -v "PUBLIC KEY"`
PUBKEY=`echo $PUBKEY|sed -e 's/ //g'`
export PUBKEY
/sbin/rsyslogd -c4
mkdir -p /var/lib/lldpad
echo 'lldp :' >> /var/lib/lldpad/lldpad.conf
echo '{' >> /var/lib/lldpad/lldpad.conf