Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 602342 Details for
Bug 626514
ISC dhcp does not support ppp and ipv6 as in`dhclient -6 -P`
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
dhclient wrapper script
dhclient-ppp.sh (text/plain), 2.17 KB, created by
Hrvoje
on 2012-08-05 09:41:12 UTC
(
hide
)
Description:
dhclient wrapper script
Filename:
MIME Type:
Creator:
Hrvoje
Created:
2012-08-05 09:41:12 UTC
Size:
2.17 KB
patch
obsolete
>#!/bin/bash > ># by Hrvoje ># ># This script is wrapper around dhclient binary. ># ># It checks for few extra option, and acts accordingly. Those are: ># ># --fakeif When called with this option, before calling real dhclient, ># script is checking to see whether interface actually exists. If not, it will ># create dummy interface, so dhclient can complete, and hopefully call needed ># scripts. Dummy interface is created on top of "lo", ising "ip link" commands. ># ># --genDUID <LL> This option and it's argument instructs script to create ># DUID and store it in lease file. NOTE: this will overwrite any existing lease ># and it's content. DUID is generated by transforming LL adres to bynary form, ># and padding it to reach 12 bytes. First two bytes are allways "0" and "1". ># > >myoutarg=() >myname=`basename $0` > >mylocallease="/var/lib/dhclient/dhclient.leases" >while [ -n "$1" ] ; do > myarg="$1" > shift > case $myarg in > --fakeif) > myfakeit=1 > ;; > --genDUID) > mygenduid="$1" > shift > if [ -z "$mygenduid" ] ; then > echo "--genDUID requires argument" >&2 > exit 1 > fi > ;; > -lf) > mylocallease=$1 > shift > myoutarg=( "${myoutarg[@]}" "$myarg" "$mylocallease" ) > ;; > -*) > myoutarg=( "${myoutarg[@]}" "$myarg" ) > ;; > *) > myifname=$myarg > myoutarg=( "${myoutarg[@]}" "$myarg" ) > ;; > esac >done > >#echo $myfakeit $myifname >if [ -n "$myfakeit" ] ; then > ip link show $IFNAME >/dev/null 2>&1 > RET=$? > if [ $RET -ne 0 ] ; then > mydummy=1 > logger -t $myname -p daemon.info "Faking device $myifname" > > ip link add link lo name $myifname type dummy > ip link set $myifname up > fi >fi > >if [ -n "$mygenduid" ] && [ -n "$mylocallease" ] ; then > mylocalduid=`echo $mygenduid | awk '{a=substr($1,7,length($1)-6);gsub(":","",a);b=substr("0001000000000000000000",1,24-length(a));b=b a;for(c=1;c<length(b);c+=2) {printf "\\\\x%s",substr(b,c,2)};print ""}'` > > echo "default-duid \"$mylocalduid\";" > $mylocallease > logger -t $myname -p daemon.info "Generated DUID $mylocalduid for $myifname" >fi > >dhclient ${myoutarg[@]} >RET=$? > >if [ -n "$mydummy" ] ; then > ip link set $myifname down > ip link del dev $myifname >fi > >exit $RET >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 626514
:
443055
|
443060
|
443128
|
446301
|
446939
|
596257
|
598914
|
602341
|
602342
|
602343
|
602344
|
602345
|
740389
|
740393
|
740670
|
741830
|
741831
|
743452
|
743453
|
819281
|
819282
|
819283
|
821802
|
901378
|
901379
|
901380