-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
network interface state to UP on system boot for kdump
- Loading branch information
1 parent
5c615a9
commit b5b2358
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
|
||
# Iterate over all detected network interfaces and configure them to use DHCP | ||
interfaces=$(ip -o link show | awk -F': ' '{print $2}' | grep -E '^e') | ||
|
||
# Bring up each Ethernet interface | ||
for interface in $interfaces; do | ||
ip link set dev $interface up | ||
dhclient $interface | ||
done | ||
|
||
echo("Maigc for kdump: All interfaces have been intialized and DHCP is enabled. Can be verified by command, \"ip addr\"") | ||
ip addr |