doc/demo: Drop /sbin from dhclient command, pass script file explicitly
dhclient might be in /usr/sbin on recent versions of Fedora, and mbuto just adds it to the same location as it was on the host: just call dhclient instead of /sbin/dhclient. This also applies for dhclient-script: given that we create the file on boot, pass its explicit location with -sf. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
6655625c30
commit
efd9d9b456
1 changed files with 4 additions and 4 deletions
|
@ -63,11 +63,11 @@ EOF
|
|||
echo "$ ip link set dev eth0 up"
|
||||
ip link set dev eth0 up
|
||||
sleep 3
|
||||
echo "$ /sbin/dhclient -4 -1"
|
||||
/sbin/dhclient -4 -1
|
||||
echo "$ dhclient -4 -1 -sf /sbin/dhclient-script"
|
||||
dhclient -4 -1 -sf /sbin/dhclient-script
|
||||
sleep 2
|
||||
echo "$ /sbin/dhclient -6 -1"
|
||||
/sbin/dhclient -6 -1
|
||||
echo "$ dhclient -6 -1 -sf /sbin/dhclient-script"
|
||||
dhclient -6 -1 -sf /sbin/dhclient-script
|
||||
sleep 2
|
||||
echo
|
||||
echo "$ ip address show"
|
||||
|
|
Loading…
Reference in a new issue