-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Network access via DHCP / PXELINUX BOOTIF
- Loading branch information
Showing
5 changed files
with
91 additions
and
5 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
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 |
---|---|---|
@@ -1,8 +1,19 @@ | ||
want_bin rsync | ||
want_bin rsync | ||
want_bin sfdisk | ||
want_bin whiptail | ||
want_bin partclone.btrfs | ||
want_bin partclone.dd | ||
want_bin partclone.exfat | ||
want_bin partclone.extfs | ||
want_bin partclone.fat | ||
want_bin partclone.hfsp | ||
want_bin partclone.ntfs | ||
want_bin partclone.ntfsfixboot | ||
want_bin partclone.restore | ||
want_bin partclone.xfs | ||
want_bin partclone.chkimg | ||
|
||
want_module tg3 | ||
want_module igb | ||
want_module e1000 | ||
want_module e1000e | ||
want_module e1000 |
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,30 @@ | ||
#!/bin/sh | ||
|
||
case "$1" in | ||
"deconfig") | ||
ip l set dev "$interface" down | ||
ip l set dev "$interface" up | ||
;; | ||
"renew") | ||
ip a replace "$ip/$mask" dev "$interface" | ||
echo "" > "/etc/resolv.conf" | ||
for srv in $dns; do | ||
printf "nameserver %s\n" "$srv" >> "/etc/resolv.conf" | ||
done | ||
for rtr in $router; do | ||
ip r replace default via "$rtr" dev "$interface" | ||
done | ||
;; | ||
"bound") | ||
ip a add "$ip/$mask" dev "$interface" | ||
for srv in $dns; do | ||
printf "nameserver %s\n" "$srv" >> "/etc/resolv.conf" | ||
done | ||
for rtr in $router; do | ||
ip r add default via "$rtr" dev "$interface" | ||
done | ||
;; | ||
"nak") | ||
printf "Failed to get a DHCP lease\n" | ||
;; | ||
esac |