summaryrefslogtreecommitdiffstats
path: root/testModule/module-setup.sh
diff options
context:
space:
mode:
authortorben2015-04-02 16:00:56 +0200
committertorben2015-04-02 16:00:56 +0200
commit0dfa3a78311376dd83811b016590343dad16ce65 (patch)
treea726c3c6ead95bf9c47a5a61a20b6a1e3238c169 /testModule/module-setup.sh
parentConfigure network. (diff)
downloadsystemd-init-0dfa3a78311376dd83811b016590343dad16ce65.tar.gz
systemd-init-0dfa3a78311376dd83811b016590343dad16ce65.tar.xz
systemd-init-0dfa3a78311376dd83811b016590343dad16ce65.zip
Remove old approach to get internet. Adding command line parsing for
kernel parameter ip.
Diffstat (limited to 'testModule/module-setup.sh')
-rw-r--r--testModule/module-setup.sh13
1 files changed, 3 insertions, 10 deletions
diff --git a/testModule/module-setup.sh b/testModule/module-setup.sh
index 7a4c4e2c..652602f5 100644
--- a/testModule/module-setup.sh
+++ b/testModule/module-setup.sh
@@ -1,7 +1,5 @@
#!/bin/bash
-# dhclient -d -sf /usr/libexec/nm-dhcp-helper -pf /var/run/dhclient-enp0s3.pid -lf /var/lib/NetworkManager/dhclient-5a775495-24d5-4d13-8c06-0196cf621bf1-enp0s3.lease -cf /var/lib/NetworkManager/dhclient-enp0s3.conf enp0s3
-
check() {
return 0
}
@@ -12,14 +10,9 @@ depends() {
}
install() {
- inst_multiple ping ip ifconfig mount sshd htop dhclient NetworkManager
- inst_simple "$moddir/ifcfg-enp0s3" /etc/sysconfig/network-scripts/ifcfg-enp0s3
- inst /etc/NetworkManager/dispatcher.d/00-netreport
- inst /etc/NetworkManager/dispatcher.d/11-dhclient
- inst /etc/NetworkManager/dnsmasq.d
- inst /etc/NetworkManager/NetworkManager.conf
- inst /etc/NetworkManager/system-connections
- inst /etc/NetworkManager/VPN
+ inst_hook cmdline 20 "$moddir/parse-ip.sh"
+ inst_hook pre-mount 20 "$moddir/setup_network.sh"
+ inst_multiple ping ip ifconfig mount sshd htop dhclient
return 0
}