Commit Graph

78 Commits

Author SHA1 Message Date
Jiri Popelka
d6db3a5145 dhclient-script: hostname -> hostnamectl --transient
For selinux-policy see
https://bugzilla.redhat.com/show_bug.cgi?id=1242583
2015-11-23 13:07:31 +01:00
Jiri Popelka
3a458259f5 dhclient-script: source ifcfg-* because of PEERDNS (#1277253) 2015-11-03 14:47:34 +01:00
Jiri Popelka
262d627cf9 dhclient-script: fix for gateway not in the end of rfc3442 routes list (#1251644) 2015-10-13 15:28:16 +02:00
Jiri Popelka
609ced7095 dhclient-script: make_resolv_conf(): keep old nameservers
if server sends domain-name/search, but no nameservers (#1269595)
2015-10-13 14:44:14 +02:00
Jiri Popelka
15e5415130 dhclient-script: merge new PREINIT6S with PREINIT6 2015-09-22 17:33:22 +02:00
Jiri Popelka
59c88cb2ff dhclient: make sure link-local address is ready in stateless mode (#1263466) 2015-09-22 17:21:11 +02:00
Jiri Popelka
fddc6e1329 dhclient-script: respect DEFROUTE/GATEWAYDEV if Classless Static Routes are offered (#1251644) 2015-08-11 16:14:59 +02:00
Jiri Popelka
4f66445eba make path to resolv.conf configurable (#1086425)
also modernize the new  need_hostname() & change_resolv_conf()
2015-07-14 19:02:03 +02:00
Jiri Popelka
27892ea741 remove dependency on initscripts (#1098172) 2015-07-14 19:01:59 +02:00
Jiri Popelka
278a2ea405 dhclient-script: run also scripts in dhclient-[enter/exit]-hooks.d dir
Debian does it similar way.
Not yet documented in dhclient-script man page.

Initial patch by Neal Gompa.
2015-05-26 18:05:19 +02:00
Jiri Popelka
d12e0eb05e dhclient-script: add a minute to address lifetimes (#1188423)
http://lists.openstack.org/pipermail/openstack-operators/2015-January/006065.html
2015-04-21 10:26:09 +02:00
Jiri Popelka
8568b714e7 dhclient-script: amend previous change (#1210984) 2015-04-13 18:18:18 +02:00
Jiri Popelka
c191e7ecf1 dhclient-script: fix shellcheck.net suggestions
https://github.com/koalaman/shellcheck/wiki/SC2068
https://github.com/koalaman/shellcheck/wiki/SC2086
https://github.com/koalaman/shellcheck/wiki/SC2046
2015-03-25 14:23:02 +01:00
Jiri Popelka
986801e117 dhclient-script: use 'ip addr replace' for both BOUND & RENEW
amends e79843f28
2015-02-17 16:22:24 +01:00
Jiri Popelka
e79843f283 dhclient-script: s/addr add/addr replace/
It might happen that the address is already there,
in which case we want to update life-times.
BZ#1187856#c15

ip addr add =     NLM_F_CREATE|NLM_F_EXCL
ip addr replace = NLM_F_CREATE|NLM_F_REPLACE
ip addr change =  NLM_F_REPLACE

from linux/netlink.h
NLM_F_REPLACE   0x100   /* Override existing            */
NLM_F_EXCL      0x200   /* Do not touch, if it exists   */
NLM_F_CREATE    0x400   /* Create, if it does not exist */
2015-02-13 19:49:39 +01:00
Jiri Popelka
81262d499a dhclient-script: remove restorecon calls (#1161500) 2014-11-10 10:47:16 +01:00
Jiri Popelka
6dec08933e dhclient-script: fix paths /[s]bin -> /usr/[s]bin 2014-10-31 11:47:20 +01:00
Jiri Popelka
4992026c16 dhclient-script: another improvement of add_ipv6_addr_with_DAD() 2014-08-26 12:08:50 +02:00
Jiri Popelka
5bd17cb2c1 - dhclient-script: IPv6 address which fails DAD is auto-removed (#1133465) 2014-08-25 19:18:38 +02:00
Jiri Popelka
b81510d1c4 dhclient-script: one more fix for #1129500 2014-08-14 14:53:19 +02:00
Jiri Popelka
efdf4e797d dhclient-script: revert one older change
This has been reverted upstream with:

- Disable the gentle shutdown functionality until we can determine
  the best way to present it to remove or reduce the side effects.
  [ISC-Bugs #36066]
2014-08-14 11:38:51 +02:00
Jiri Popelka
991bd354d9 dhclient-script: PREINIT6: make sure link-local address is available (#1129500) 2014-08-14 11:38:42 +02:00
Jiri Popelka
5938016904 dhclient-script: it's OK if the arping reply comes from our system (#1116004) 2014-08-05 16:29:22 +02:00
Filipe Brandenburger
6b7e125d8b dhclient-script: fix static classless routes
This fixes an issue with handling of classless static routes that breaks
Fedora 20 on GCE cloud VMs (#1102830).

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
Signed-off-by: Jiri Popelka <jpopelka@redhat.com>
2014-06-16 15:00:40 +02:00
Jiri Popelka
4533a8a170 dhclient-script: fix stateless DHCPv6 mode (#1101149) 2014-05-28 17:47:08 +02:00
Jiri Popelka
d80cfcbfe3 dhclient-script: don't flush all addresses, just the used one 2014-02-19 18:04:49 +01:00
Jiri Popelka
e7bd38e572 4.3.0b1
- ship dhcp-lease-list.pl
- dhclient-script: don't ping router (#1055181)
2014-01-21 10:34:27 +01:00
Jiri Popelka
543c1a5814 update address lifetimes on RENEW/RENEW6 (#1032809) 2014-01-13 13:28:07 +01:00
Jiri Popelka
e3ee5b17e9 dhclient-script: set address lifetimes (#1032809) 2013-11-21 14:52:30 +01:00
Jiri Popelka
e220d8e06b dhclient-script: don't eviscerate resolv.conf when mktemp fails 2013-11-15 12:53:50 +01:00
Jiri Popelka
aa59a9986b dhclient-script(RENEW6|REBIND6): delete old ip6_address if it changed (#1015729) 2013-11-14 15:20:26 +01:00
Tomas Hozza
60e971c9e5 dhclient-script: calling dhclient-up-hooks after setting up route, gateways
& interface alias (#848869)
2012-08-20 15:41:22 +02:00
Tomas Hozza
5a6fff1160 dhclient-script: fixed CONFIG variable value passed to need_config (#848858) 2012-08-20 12:27:52 +02:00
Jiri Popelka
8162f59b94 define $SAVEDIR in dhclient-script (#833054) 2012-06-18 16:19:31 +02:00
Jiri Popelka
efe27aa872 4.2.4rc1 2012-05-01 09:23:59 +02:00
Jiri Popelka
634087ae6d remove inherit-leases.patch - it's probably not needed anymore (#815355) 2012-04-26 14:58:19 +02:00
Jiri Popelka
cfe00c427f move dhclient & dhclient-script from /sbin to /usr/sbin 2012-04-02 12:05:14 +02:00
Jiri Popelka
4e92627fc4 dhclient-script: install link-local static routes with correct scope (#787318) 2012-02-07 11:09:27 +01:00
Jiri Popelka
367b443933 dhclient-script: use dadfailed flag in add_ipv6_addr_with_DAD() 2012-01-04 18:10:42 +01:00
Jiri Popelka
0acc1b8c2c revert change made in 4.2.3-3 because of failing failover (#765967)
don't need to fix lease files ownership before starting service
dhclient-script: allow static route with a 0.0.0.0 next-hop addressi (#769463
2011-12-21 12:20:29 +01:00
Jiri Popelka
9af3b80de3 dhclient-script: arping address in BOUND|RENEW|REBIND|REBOOT (#752116) 2011-11-11 14:00:38 +01:00
Jiri Popelka
5c5bbc0b1a dhclient-script: address alias fixes (#741786) 2011-09-29 14:29:21 +02:00
Jiri Popelka
1e3f54a9ec dhclient-script: do not backup&restore /etc/resolv.conf and /etc/localtime.
This has been Fedora/RHEL feature only.
I don't know why it was added but
I also don't see how it could be useful and bugs
656339 and 306381 show that it's not so good idea.
2011-09-22 15:52:44 +02:00
Jiri Popelka
9b3b26027b dhclient-script: backport upstream changes 2011-07-01 15:04:42 +02:00
Jiri Popelka
a2aab09028 dhclient-script improvements (#672279) 2011-01-28 15:43:40 +01:00
Jiri Popelka
b909aab049 dhclient-script: another fix for checking for other running dhclient 2011-01-18 18:02:35 +01:00
Jiri Popelka
c8c18ca6c8 dhclient-script: fix checking for other running dhclient 2011-01-07 13:19:41 +01:00
Jiri Popelka
5d3b86d844 dhclient-script: added missing quotation marks 2010-12-23 15:50:49 +01:00
Jiri Popelka
7b41fdb208 4.2.0-P2: fix for CVE-2010-3616 (#662326)
- Use upstream fix for #628258
- Provide versioned symbols for rpmlint
2010-12-13 12:08:24 +01:00
Jiri Popelka
76c2a1e49b DHCPv6 over PPP support (#626514) 2010-11-09 17:01:11 +01:00