Commit ac845a93 by sungmin

modified faibase 10-misc

- bug : cannot attach hostname to hosts file
parent 993a9034
Showing with 3 additions and 1 deletions
...@@ -8,8 +8,10 @@ echo $TIMEZONE > $target/etc/timezone ...@@ -8,8 +8,10 @@ echo $TIMEZONE > $target/etc/timezone
cp -f /usr/share/zoneinfo/${TIMEZONE} $target/etc/localtime cp -f /usr/share/zoneinfo/${TIMEZONE} $target/etc/localtime
if [ -n "$IPADDR" ]; then if [ -n "$IPADDR" ]; then
ifclass DHCPC || ainsl -s /etc/hosts "$IPADDR $HOSTNAME.$DOMAIN $HOSTNAME" #ifclass DHCPC || ainsl -s $target/etc/hosts "$IPADDR $HOSTNAME.$DOMAIN $HOSTNAME"
ifclass DHCPC && ainsl -s /etc/hosts "$IPADDR $HOSTNAME.$DOMAIN $HOSTNAME"
else else
#ifclass DHCPC && ainsl -s $target/etc/hosts "127.0.0.1 $HOSTNAME"
ifclass DHCPC && ainsl -s /etc/hosts "127.0.0.1 $HOSTNAME" ifclass DHCPC && ainsl -s /etc/hosts "127.0.0.1 $HOSTNAME"
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment