summaryrefslogtreecommitdiffstats
path: root/modules.d/45ifcfg/module-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/45ifcfg/module-setup.sh')
-rwxr-xr-xmodules.d/45ifcfg/module-setup.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/modules.d/45ifcfg/module-setup.sh b/modules.d/45ifcfg/module-setup.sh
new file mode 100755
index 0000000..b0d4418
--- /dev/null
+++ b/modules.d/45ifcfg/module-setup.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+# called by dracut
+check() {
+ [[ -d $dracutsysrootdir/etc/sysconfig/network-scripts ]] && return 0
+ return 255
+}
+
+# called by dracut
+depends() {
+ echo "network"
+ return 0
+}
+
+# called by dracut
+install() {
+ inst_binary awk
+ inst_hook pre-pivot 85 "$moddir/write-ifcfg.sh"
+}