1 diff -dur -x '*.orig' systemd-218.orig/man/systemd.special.xml systemd-218/man/systemd.special.xml
2 --- systemd-218.orig/man/systemd.special.xml 2014-12-05 01:26:51.000000000 +0100
3 +++ systemd-218/man/systemd.special.xml 2015-04-03 15:01:42.000000000 +0200
5 <varname>After=</varname> for this target unit to all SysV
6 init script service units with an LSB header referring to
7 the <literal>$network</literal> facility.</para>
9 + <para>PLD specific: also scripts with
10 + <literal>. /etc/sysconfig/network</literal>
11 + source line get the dependency.</para>
15 diff -dur -x '*.orig' systemd-218.orig/src/sysv-generator/sysv-generator.c systemd-218/src/sysv-generator/sysv-generator.c
16 --- systemd-218.orig/src/sysv-generator/sysv-generator.c 2014-12-05 01:26:51.000000000 +0100
17 +++ systemd-218/src/sysv-generator/sysv-generator.c 2015-04-03 15:02:21.000000000 +0200
22 + // PLD specific ugly hack to detect SysV services requiring network
23 + if (startswith_no_case(t, ". /etc/sysconfig/network")) {
24 + r = strv_extend(&s->wants, "network.target");
26 + log_error("[%s:%u] Failed to add dependency on network.target, ignoring: %s", s->path, line, strerror(-r));
27 + r = strv_extend(&s->after, "network.target");
29 + log_error("[%s:%u] Failed to add dependency on network.target, ignoring: %s", s->path, line, strerror(-r));
32 /* Try to figure out whether this init script supports
33 * the reload operation. This heuristic looks for