fix: chmod +x in genapkovl to fix permissions regardless of git filemode on VM
- genapkovl now explicitly chmod +x init.d/* and usr/local/bin/* after cp - add bee-net-restart command (short name, no .sh) and /etc/profile.d/bee.sh for PATH - udhcpc: add & to ensure non-blocking even when DHCP responds immediately - motd: short commands without paths Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -22,10 +22,10 @@ for iface in $interfaces; do
|
||||
log "bringing up $iface"
|
||||
ip link set "$iface" up 2>/dev/null || { log "WARN: could not bring up $iface"; continue; }
|
||||
|
||||
# DHCP: run in background (-b) so udhcpc persists and retries when cable is connected later.
|
||||
# DHCP in background: -b forks if no immediate lease, & ensures non-blocking always.
|
||||
# -t 0: unlimited retries, -T 3: 3s per attempt. No -q: stay running to renew lease.
|
||||
udhcpc -i "$iface" -b -t 0 -T 3
|
||||
log "DHCP started for $iface (background, will retry and renew lease)"
|
||||
udhcpc -i "$iface" -b -t 0 -T 3 &
|
||||
log "DHCP started for $iface (pid $!)"
|
||||
done
|
||||
|
||||
log "done"
|
||||
|
||||
Reference in New Issue
Block a user