On Sat, Jul 9, 2016 at 5:33 PM, Michael D. Setzer II <[email protected]> wrote: > The script run by the udhcpc does have a $ip variable in one place, and I > tried putting an export after that line, but new got anything in environment.
Environment variables are per-process, they are not shared with the parent process or any other process. In your case of a ad-hoc script it's acceptable to scrape the output. You can massage it so that the script works for both old and new output: delete "udhcpc: " prefix, match "lease" case-insensitively. _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
