Skip to content

Commit

Permalink
Revert "fix code for adding entries to /etc/hosts"
Browse files Browse the repository at this point in the history
This reverts commit 496059a.
  • Loading branch information
Thomas Lange committed Jun 3, 2015
1 parent 15cfdb0 commit b98ba89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/simple/scripts/FAIBASE/10-misc
Expand Up @@ -8,9 +8,9 @@ echo $TIMEZONE > $target/etc/timezone
cp -f /usr/share/zoneinfo/${TIMEZONE} $target/etc/localtime

if [ -n "$IPADDR" ]; then
ainsl -vs /etc/hosts "$IPADDR $HOSTNAME.$DOMAIN $HOSTNAME"
ifclass DHCPC || ainsl -s /etc/hosts "$IPADDR $HOSTNAME.$DOMAIN $HOSTNAME"
else
ainsl -vs /etc/hosts "127.0.0.1 $HOSTNAME"
ifclass DHCPC && ainsl -s /etc/hosts "127.0.0.1 $HOSTNAME"
fi

fcopy -iM /etc/hosts /etc/motd
Expand Down

0 comments on commit b98ba89

Please sign in to comment.