]> git.ipfire.org Git - people/arne_f/ipfire-2.x.git/commit
rebuildhosts: Don't break when RED not online
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 3 Jun 2015 16:00:13 +0000 (18:00 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 3 Jun 2015 16:00:13 +0000 (18:00 +0200)
commite528fb2c7352bf8f2b5c2bc3e298bfa4c34b9d31
tree10cfaaeffd1fc06f737c04f29cbce4f48b21a660
parentbd33c332275ccb041a908c6e53ba78a1fa82f900
rebuildhosts: Don't break when RED not online

The hosts file was not regenerated when RED was not connected
which should not be happening.

This patch checks if the file exists. If not, the gateway
line will not be written to /etc/hosts.
src/misc-progs/rebuildhosts.c