blob: be1b354e921de7d53e8845e4384e867154b6d14d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
# A simple plug for dhcp for better-initramfs.
# Pass thru what udhcpc pass to script into a file for inclusion.
exec > /dhcp-query-result
case "$1" in
'renew'|'bound')
printf 'binit_net_addr=%s\n' "${ip}/${mask}"
printf 'binit_net_gw=%s\n' "${router}"
;;
esac
|