<feed xmlns='http://www.w3.org/2005/Atom'>
<title>initscripts/sysconfig/network-scripts, branch 9.49.44</title>
<subtitle>Mageia fork of Fedora's Init Scripts</subtitle>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/'/>
<entry>
<title>network-scripts: setting of firewall ZONE fixed</title>
<updated>2018-06-07T12:26:23+00:00</updated>
<author>
<name>David Kaspar [Dee'Kej]</name>
<email>dkaspar@redhat.com</email>
</author>
<published>2018-06-06T17:19:11+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=d951e7c7d64c0378424b8b2edd406ae9eaa73ec1'/>
<id>d951e7c7d64c0378424b8b2edd406ae9eaa73ec1</id>
<content type='text'>
  For currently unknown reason the dbus-send calls will fail to set the
  firewall zone for the given interface if we omit the --print-reply
  option...

  This looks like some kind of race-condition in dbus-send, since the
  --print-reply makes the call synchronous and slower.

  Hopefully this is only a temporary workaround until DBus is fixed.

  Resolves: #1586284
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  For currently unknown reason the dbus-send calls will fail to set the
  firewall zone for the given interface if we omit the --print-reply
  option...

  This looks like some kind of race-condition in dbus-send, since the
  --print-reply makes the call synchronous and slower.

  Hopefully this is only a temporary workaround until DBus is fixed.

  Resolves: #1586284
</pre>
</div>
</content>
</entry>
<entry>
<title>network-functions: use tr to upper case strings rather than awk</title>
<updated>2018-05-17T15:47:07+00:00</updated>
<author>
<name>Matteo Croce</name>
<email>mcroce@redhat.com</email>
</author>
<published>2018-04-09T22:48:11+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=c29fbec03a13d7cfaac46af72aafc44f78902cc4'/>
<id>c29fbec03a13d7cfaac46af72aafc44f78902cc4</id>
<content type='text'>
network-functions uses awk to tranform the mac address to upper case.
Replace awk with tr which is two order of magnitude faster:

    $ time awk '{ print toupper($0) }' &lt;/usr/share/dict/words &gt;/dev/null

    real    0m0,227s
    user    0m0,224s
    sys     0m0,004s
    $ time tr '[a-z]' '[A-Z]' &lt;/usr/share/dict/words &gt;/dev/null

    real    0m0,005s
    user    0m0,000s
    sys     0m0,005s

Also use here-strings instead of spawning a subshell and a pipe.

Signed-off-by: Matteo Croce &lt;mcroce@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
network-functions uses awk to tranform the mac address to upper case.
Replace awk with tr which is two order of magnitude faster:

    $ time awk '{ print toupper($0) }' &lt;/usr/share/dict/words &gt;/dev/null

    real    0m0,227s
    user    0m0,224s
    sys     0m0,004s
    $ time tr '[a-z]' '[A-Z]' &lt;/usr/share/dict/words &gt;/dev/null

    real    0m0,005s
    user    0m0,000s
    sys     0m0,005s

Also use here-strings instead of spawning a subshell and a pipe.

Signed-off-by: Matteo Croce &lt;mcroce@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>network-functions: add error messages for bonding installation</title>
<updated>2018-05-17T12:49:45+00:00</updated>
<author>
<name>David Kaspar [Dee'Kej]</name>
<email>dkaspar@redhat.com</email>
</author>
<published>2018-05-02T13:53:04+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=e811abf000f525932f6334ce0c06adb3d2860a6d'/>
<id>e811abf000f525932f6334ce0c06adb3d2860a6d</id>
<content type='text'>
  Instead of displaying messages without context, like this:

  ./network-functions: line 571: echo: write error: Invalid argument
  ./network-functions: line 598: echo: write error: Permission denied

  We will now display pretty error messages (via net_log) about what has
  actually failed...

  This has been requested by our customer:
  https://bugzilla.redhat.com/show_bug.cgi?id=1542514
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  Instead of displaying messages without context, like this:

  ./network-functions: line 571: echo: write error: Invalid argument
  ./network-functions: line 598: echo: write error: Permission denied

  We will now display pretty error messages (via net_log) about what has
  actually failed...

  This has been requested by our customer:
  https://bugzilla.redhat.com/show_bug.cgi?id=1542514
</pre>
</div>
</content>
</entry>
<entry>
<title>ifdown-post: fix logical error in commit 5d61564</title>
<updated>2018-01-02T16:29:40+00:00</updated>
<author>
<name>David Kaspar [Dee'Kej]</name>
<email>dkaspar@redhat.com</email>
</author>
<published>2018-01-02T14:47:30+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=2caa3bfbe717f92d0e0677ea3dc1290a54a8bcf7'/>
<id>2caa3bfbe717f92d0e0677ea3dc1290a54a8bcf7</id>
<content type='text'>
  Empty ${RESOLV_MODS} was causing a deletion of config files in
  /etc/ppp/peers/*

  Resolves: #155
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  Empty ${RESOLV_MODS} was causing a deletion of config files in
  /etc/ppp/peers/*

  Resolves: #155
</pre>
</div>
</content>
</entry>
<entry>
<title>network-functions: use POSIX forwarding instead of bash-ism</title>
<updated>2017-11-09T13:58:51+00:00</updated>
<author>
<name>David Kaspar [Dee'Kej]</name>
<email>dkaspar@redhat.com</email>
</author>
<published>2017-11-08T16:25:24+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=cfa035c7c3aeacea60d4e12bebde7ce8e1ecc54b'/>
<id>cfa035c7c3aeacea60d4e12bebde7ce8e1ecc54b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>ifup-post: always update nameserver &amp; search entries in /etc/resolv.conf</title>
<updated>2017-11-02T10:54:44+00:00</updated>
<author>
<name>David Kaspar [Dee'Kej]</name>
<email>dkaspar@redhat.com</email>
</author>
<published>2017-10-30T16:08:42+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=4da9dbaffba4af74eb632d1a5d10e5c366475516'/>
<id>4da9dbaffba4af74eb632d1a5d10e5c366475516</id>
<content type='text'>
  This is complete rework of how we generate the /etc/resolv.conf.

  Fixes:
   * always update 'nameserver' &amp; 'search' entries when DNS* &amp; DOMAIN
     options (respectively) were updated in ifcfg-* files
   * always update the order of 'nameserver' entries when the order of
     DNS* options was updated

  Enhancements:
   * added support for DNS3 option (equals to MAXNS value in GLIBC)
   * added logic to process duplicate DNS* options
   * added logic to process randomly omitted DNS* options (e.g. omitting
     DNS1 while specifying DNS2 and/or DNS3 will still work now)

  This work was based on these two RHEL-7.5 BZs:
  https://bugzilla.redhat.com/show_bug.cgi?id=1364895
  https://bugzilla.redhat.com/show_bug.cgi?id=1357658
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  This is complete rework of how we generate the /etc/resolv.conf.

  Fixes:
   * always update 'nameserver' &amp; 'search' entries when DNS* &amp; DOMAIN
     options (respectively) were updated in ifcfg-* files
   * always update the order of 'nameserver' entries when the order of
     DNS* options was updated

  Enhancements:
   * added support for DNS3 option (equals to MAXNS value in GLIBC)
   * added logic to process duplicate DNS* options
   * added logic to process randomly omitted DNS* options (e.g. omitting
     DNS1 while specifying DNS2 and/or DNS3 will still work now)

  This work was based on these two RHEL-7.5 BZs:
  https://bugzilla.redhat.com/show_bug.cgi?id=1364895
  https://bugzilla.redhat.com/show_bug.cgi?id=1357658
</pre>
</div>
</content>
</entry>
<entry>
<title>ifup-eth: wait for STP to complete setup on bridge if $DELAY is not set</title>
<updated>2017-10-31T11:36:19+00:00</updated>
<author>
<name>David Kaspar [Dee'Kej]</name>
<email>dkaspar@redhat.com</email>
</author>
<published>2017-07-21T10:13:00+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=75bf420df0f31cc79d1603c2b5a184ccdb151813'/>
<id>75bf420df0f31cc79d1603c2b5a184ccdb151813</id>
<content type='text'>
  Otherwise obtaining IP from DHCP might fail. Based on patch from:
   * Rich Alloway &lt;richard.alloway@roguewave.com&gt; | CentOS BZ #0011138
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  Otherwise obtaining IP from DHCP might fail. Based on patch from:
   * Rich Alloway &lt;richard.alloway@roguewave.com&gt; | CentOS BZ #0011138
</pre>
</div>
</content>
</entry>
<entry>
<title>init.d/functions: convert2sec() function added</title>
<updated>2017-10-31T11:36:19+00:00</updated>
<author>
<name>David Kaspar [Dee'Kej]</name>
<email>dkaspar@redhat.com</email>
</author>
<published>2017-07-21T09:25:28+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=3e3ff2ac3d89cd626d88b3043c7f7234dec4d4e1'/>
<id>3e3ff2ac3d89cd626d88b3043c7f7234dec4d4e1</id>
<content type='text'>
  And network-scripts/network-functions was patched to use convert2sec().

  This function can be used to convert the value of its first parameter
  to a number of seconds - based on the time unit (specified as the
  second parameter).

  This is mostly useful for converting values for use with the sleep(1).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  And network-scripts/network-functions was patched to use convert2sec().

  This function can be used to convert the value of its first parameter
  to a number of seconds - based on the time unit (specified as the
  second parameter).

  This is mostly useful for converting values for use with the sleep(1).
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace usleep(1) calls with sleep(1) calls</title>
<updated>2017-10-31T11:36:19+00:00</updated>
<author>
<name>David Kaspar [Dee'Kej]</name>
<email>dkaspar@redhat.com</email>
</author>
<published>2017-05-25T11:25:55+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=3e524c51a3438cbfc92a5ad19614b3bf8fbd4000'/>
<id>3e524c51a3438cbfc92a5ad19614b3bf8fbd4000</id>
<content type='text'>
  The time units had to be manually converted from microseconds to
  seconds. Hopefully this was done right.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  The time units had to be manually converted from microseconds to
  seconds. Hopefully this was done right.
</pre>
</div>
</content>
</entry>
<entry>
<title>network-scripts: forward DBus calls to /dev/null</title>
<updated>2017-10-31T11:27:31+00:00</updated>
<author>
<name>David Kaspar [Dee'Kej]</name>
<email>dkaspar@redhat.com</email>
</author>
<published>2017-10-31T11:14:30+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=40eb870afeb4c984e1b9035100e65acb03812ac0'/>
<id>40eb870afeb4c984e1b9035100e65acb03812ac0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
