summaryrefslogtreecommitdiffstats
path: root/meta-intel-extras/recipes/initrdscripts/initramfs-framework/network
diff options
context:
space:
mode:
authorKari Hormi <kari.hormi@qt.io>2019-01-29 13:58:21 +0200
committerKari Hormi <kari.hormi@qt.io>2019-02-01 08:07:02 +0000
commitfdefea451f43061df5d2ea979cf8a27f1ebb3d6a (patch)
tree8f15eb00fa704467edd2df1b88ac82e4a2f1d0cc /meta-intel-extras/recipes/initrdscripts/initramfs-framework/network
parent526c468b393fe32b697ec06e5f204185aeb90046 (diff)
downloadmeta-boot2qt-fdefea451f43061df5d2ea979cf8a27f1ebb3d6a.tar.gz
Implement NFS mounting for Intel NUCs
This commit includes the following changes: - Implement NFS mounting support to initramfs - Load network card driver and configure it with dhcp in initramfs Change-Id: If9c6d30050713cdfc844b198e67dfba316c5a719 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
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