Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: add udhcpc busybox symlink + default.script to initramfs

udhcpc was missing from busybox symlinks, causing dhclient fallback
loop. Now creates /sbin/udhcpc + /usr/share/udhcpc/default.script
that configures IP, routes, and DNS after lease.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+23 -1
+23 -1
fedac/native/docker-build.sh
··· 124 124 mktemp printf seq stat basename dirname env expr true false readlink \ 125 125 realpath rmdir uniq yes tar gzip gunzip hostname id ip modprobe \ 126 126 mkswap swapon vi df du diff xargs nohup pgrep killall cut whoami awk \ 127 - sync poweroff reboot halt mknod; do 127 + sync poweroff reboot halt mknod udhcpc; do 128 128 ln -s busybox "$IROOT/bin/$cmd" 129 129 done 130 + # udhcpc also expected at /sbin/ by wifi.c 131 + ln -sf ../bin/busybox "$IROOT/sbin/udhcpc" 2>/dev/null || true 132 + # Minimal udhcpc script to configure interface after getting lease 133 + mkdir -p "$IROOT/usr/share/udhcpc" 134 + cat > "$IROOT/usr/share/udhcpc/default.script" << 'UDHCPC_SCRIPT' 135 + #!/bin/sh 136 + case "$1" in 137 + bound|renew) 138 + ip addr flush dev "$interface" 139 + ip addr add "$ip/${mask:-24}" dev "$interface" 140 + [ -n "$router" ] && ip route add default via "$router" dev "$interface" 141 + [ -n "$dns" ] && { 142 + : > /etc/resolv.conf 143 + for d in $dns; do echo "nameserver $d" >> /etc/resolv.conf; done 144 + } 145 + ;; 146 + deconfig) 147 + ip addr flush dev "$interface" 148 + ;; 149 + esac 150 + UDHCPC_SCRIPT 151 + chmod +x "$IROOT/usr/share/udhcpc/default.script" 130 152 131 153 # ── 2b: Init script ── 132 154 cp "$NATIVE/initramfs/init" "$IROOT/init"