summaryrefslogtreecommitdiffstats
path: root/meta-intel-extras/recipes/initrdscripts/initramfs-framework/network
diff options
context:
space:
mode:
Diffstat (limited to 'meta-intel-extras/recipes/initrdscripts/initramfs-framework/network')
-rw-r--r--meta-intel-extras/recipes/initrdscripts/initramfs-framework/network47
1 files changed, 47 insertions, 0 deletions
diff --git a/meta-intel-extras/recipes/initrdscripts/initramfs-framework/network b/meta-intel-extras/recipes/initrdscripts/initramfs-framework/network
new file mode 100644
index 0000000..134a70a
--- /dev/null
+++ b/meta-intel-extras/recipes/initrdscripts/initramfs-framework/network
@@ -0,0 +1,47 @@
1#!/bin/sh
2
3############################################################################
4##
5## Copyright (C) 2019 The Qt Company Ltd.
6## Contact: https://www.qt.io/licensing/
7##
8## This file is part of the Boot to Qt meta layer.
9##
10## $QT_BEGIN_LICENSE:GPL$
11## Commercial License Usage
12## Licensees holding valid commercial Qt licenses may use this file in
13## accordance with the commercial license agreement provided with the
14## Software or, alternatively, in accordance with the terms contained in
15## a written agreement between you and The Qt Company. For licensing terms
16## and conditions see https://www.qt.io/terms-conditions. For further
17## information use the contact form at https://www.qt.io/contact-us.
18##
19## GNU General Public License Usage
20## Alternatively, this file may be used under the terms of the GNU
21## General Public License version 3 or (at your option) any later version
22## approved by the KDE Free Qt Foundation. The licenses are as published by
23## the Free Software Foundation and appearing in the file LICENSE.GPL3
24## included in the packaging of this file. Please review the following
25## information to ensure the GNU General Public License requirements will
26## be met: https://www.gnu.org/licenses/gpl-3.0.html.
27##
28## $QT_END_LICENSE$
29##
30############################################################################
31
32network_enabled() {
33 return 0
34}
35
36network_run() {
37 if [ -n "$bootparam_ip" ]; then
38 load_kernel_module r8169
39 if [ "${bootparam_ip}" -ne "dhcp" ]; then
40 echo "WARN: DHCP only supported at this time."
41 fi
42 ip link set dev eth0 up
43 udhcpc
44 fi
45}
46
47