aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2017-07-02 16:35:50 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-07-04 23:38:18 +0200
commit5fb1b867821b4e8968ca7f364196a5e67e80c436 (patch)
treeca663804f556dc9058c8146c170d41ecc404f10b /system
parentcaaff41ec168d4abe083eccebb534c555b816e66 (diff)
downloadbuildroot-5fb1b867821b4e8968ca7f364196a5e67e80c436.tar.gz
buildroot-5fb1b867821b4e8968ca7f364196a5e67e80c436.tar.bz2
package/ifupdown-scripts: new package
The ifupdown scripts can be used independently of the init system, be it sysv, busybox or systemd; they could even be used when there is no init system (i.e. the user is providing his own). Currently, those ifupdown scripts are bundled in the skeleton. But we soon will have a skeleton specific to systemd, so we would be missing those scripts (when systemd-networkd is not enabled). So, move those scripts to their own package. To keep the current behaviour (before it is changed in future commits), we make that package default to y, but depend on the default skeleton. Instead of being a target-finalize hook, the scripts are installed as any other package are, with a package install-target command. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Arnout Vandecappelle <arnout@mind.be> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> [Thomas: drop empty IFUPDOWN_SCRIPTS_SOURCE] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'system')
-rw-r--r--system/skeleton/etc/network/if-down.d/.empty0
-rw-r--r--system/skeleton/etc/network/if-post-down.d/.empty0
-rwxr-xr-xsystem/skeleton/etc/network/if-pre-up.d/wait_iface21
-rw-r--r--system/skeleton/etc/network/if-up.d/.empty0
4 files changed, 0 insertions, 21 deletions
diff --git a/system/skeleton/etc/network/if-down.d/.empty b/system/skeleton/etc/network/if-down.d/.empty
deleted file mode 100644
index e69de29bb2..0000000000
--- a/system/skeleton/etc/network/if-down.d/.empty
+++ /dev/null
diff --git a/system/skeleton/etc/network/if-post-down.d/.empty b/system/skeleton/etc/network/if-post-down.d/.empty
deleted file mode 100644
index e69de29bb2..0000000000
--- a/system/skeleton/etc/network/if-post-down.d/.empty
+++ /dev/null
diff --git a/system/skeleton/etc/network/if-pre-up.d/wait_iface b/system/skeleton/etc/network/if-pre-up.d/wait_iface
deleted file mode 100755
index ebccff2aa5..0000000000
--- a/system/skeleton/etc/network/if-pre-up.d/wait_iface
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-
-# In case we have a slow-to-appear interface (e.g. eth-over-USB),
-# and we need to configure it, wait until it appears, but not too
-# long either. IF_WAIT_DELAY is in seconds.
-
-if [ "${IF_WAIT_DELAY}" -a ! -e "/sys/class/net/${IFACE}" ]; then
- printf "Waiting for interface %s to appear" "${IFACE}"
- while [ ${IF_WAIT_DELAY} -gt 0 ]; do
- if [ -e "/sys/class/net/${IFACE}" ]; then
- printf "\n"
- exit 0
- fi
- sleep 1
- printf "."
- : $((IF_WAIT_DELAY -= 1))
- done
- printf " timeout!\n"
- exit 1
-fi
-
diff --git a/system/skeleton/etc/network/if-up.d/.empty b/system/skeleton/etc/network/if-up.d/.empty
deleted file mode 100644
index e69de29bb2..0000000000
--- a/system/skeleton/etc/network/if-up.d/.empty
+++ /dev/null