17 lines
328 B
Bash
Executable File
17 lines
328 B
Bash
Executable File
# We should go last, and default the root if needed
|
|
|
|
if [ -z "$root" -a -z "$netroot" ]; then
|
|
netroot=dhcp
|
|
fi
|
|
|
|
if [ "$root" = "dhcp" -a -z "$netroot" ]; then
|
|
rootok=1
|
|
netroot=dhcp
|
|
unset root
|
|
fi
|
|
|
|
# Cleanup any coversions from root->netroot if they are the same
|
|
if [ "$netroot" = "$root" ]; then
|
|
unset root
|
|
fi
|