Skip to content

Commit 90253ab

Browse files
committed
Have udhcpcd stop requesting leases after 3 attempts
1 parent f97782d commit 90253ab

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

init

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ if [ -n "$BOOTIF" ]; then
3939
if [ "$mac" = "$(cat $ifacepath/address | tr -d " \n")" ]; then
4040
printf "Boot interface recognized as %s, trying DHCP\n" "$iface"
4141
ip l set dev "$iface" up
42-
udhcpc -t 3 -i "$iface" -s ./udhcpc.script
42+
udhcpc -t 3 -n -i "$iface" -s ./udhcpc.script
4343
dhcp_done=1
4444
fi
4545
fi
@@ -53,7 +53,7 @@ elif [ "$dhcp" != "no" ]; then
5353
done
5454

5555
printf "Trying DHCP on all supported interfaces\n"
56-
udhcpc -t 3 -s ./udhcpc.script
56+
udhcpc -t 3 -n -s ./udhcpc.script
5757
fi
5858

5959
if [ -x "./main" ]; then

stowaway.script

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ want_bin lsblk
33
want_bin blkid
44
want_bin fdisk
55
want_bin vim
6+
want_bin mkfs.ext4
7+
want_bin mkfs.vfat
68
want_bin e2label
79
want_bin wget
810
want_bin curl

0 commit comments

Comments
 (0)