Em 24-01-2014 16:34, BLFS Trac escreveu:
> #4605: DHCPCD 6.2.1
> -------------------------+----------------------

...

> Comment (by fo):

...

>  I know very little about these matters, just trying to help and learn a
>  little more.

Sorry, ĸen, did it again, discussing in track. Moving here, should have
done it before.

Ragnar, I do not remember if your problem is with wifi.

It may be a repetition, but will post here the following, so we can have
more info to discuss.

{{{
$ env LC_ALL=C diff -qr DEST-dhcpcd-6.0.5 DEST-dhcpcd-6.2.1
Files DEST-dhcpcd-6.0.5/etc/dhcpcd.conf and
DEST-dhcpcd-6.2.1/etc/dhcpcd.conf differ
Only in DEST-dhcpcd-6.2.1/lib/dhcpcd: dev
Files DEST-dhcpcd-6.0.5/lib/dhcpcd/dhcpcd-hooks/10-wpa_supplicant and
DEST-dhcpcd-6.2.1/lib/dhcpcd/dhcpcd-hooks/10-wpa_supplicant differ
Files DEST-dhcpcd-6.0.5/lib/dhcpcd/dhcpcd-hooks/20-resolv.conf and
DEST-dhcpcd-6.2.1/lib/dhcpcd/dhcpcd-hooks/20-resolv.conf differ
Files DEST-dhcpcd-6.0.5/lib/dhcpcd/dhcpcd-run-hooks and
DEST-dhcpcd-6.2.1/lib/dhcpcd/dhcpcd-run-hooks differ
Files DEST-dhcpcd-6.0.5/sbin/dhcpcd and DEST-dhcpcd-6.2.1/sbin/dhcpcd differ
Files DEST-dhcpcd-6.0.5/usr/share/man/man5/dhcpcd.conf.5 and
DEST-dhcpcd-6.2.1/usr/share/man/man5/dhcpcd.conf.5 differ
Files DEST-dhcpcd-6.0.5/usr/share/man/man8/dhcpcd.8 and
DEST-dhcpcd-6.2.1/usr/share/man/man8/dhcpcd.8 differ
}}}

Essentially, a new directory and four different files:
/etc/dhcpcd.conf, /lib/dhcpcd/dhcpcd-hooks/10-wpa_supplicant,
/lib/dhcpcd/dhcpcd-hooks/20-resolv.conf and /lib/dhcpcd/dhcpcd-run-hooks

Two of these, I have already posted in track the diff's.

The new directory is

{{{
ls DEST-dhcpcd-6.2.1/lib/dhcpcd/dev/
udev.so
}}}

Therefore a library is created, and I have to include in the book. I
have no idea what exactly this "udev.so" does.

The other two files diff's (10-wpa_supplicant and 20-resolv.conf):

The first one, may make a difference in behaviour for wifi:

{{{
$ diff -Naur DEST-dhcpcd-6.0.5/lib/dhcpcd/dhcpcd-hooks/10-wpa_supplicant
DEST-dhcpcd-6.2.1/lib/dhcpcd/dhcpcd-hooks/10-wpa_supplicant
--- DEST-dhcpcd-6.0.5/lib/dhcpcd/dhcpcd-hooks/10-wpa_supplicant
2014-01-23 18:38:05.268905057 -0300
+++ DEST-dhcpcd-6.2.1/lib/dhcpcd/dhcpcd-hooks/10-wpa_supplicant
2014-01-23 18:39:18.300906188 -0300
@@ -3,6 +3,17 @@
 # and the user should not be expected to have to wire it into their system
 # if the base system doesn't do this itself.

+if [ -z "$wpa_supplicant_conf" ]; then
+       for x in \
+               /etc/wpa_supplicant.conf \
+               /etc/wpa_supplicant/wpa_supplicant.conf \
+       ; do
+               if [ -s "$x" ]; then
+                       wpa_supplicant_conf="$x"
+                       break
+               fi
+       done
+fi
 : ${wpa_supplicant_conf:=/etc/wpa_supplicant.conf}

 wpa_supplicant_start()
}}}

Here, there is a break, but we do not have wpa_supplicant.conf in the
/etc tree (at least I could not find it in the book, I have not built it).

Second one, I don't think would much matter, in your case:

{{{
$ diff -Naur DEST-dhcpcd-6.0.5/lib/dhcpcd/dhcpcd-hooks/20-resolv.conf
DEST-dhcpcd-6.2.1/lib/dhcpcd/dhcpcd-hooks/20-resolv.conf
--- DEST-dhcpcd-6.0.5/lib/dhcpcd/dhcpcd-hooks/20-resolv.conf    2014-01-23
18:38:05.268905057 -0300
+++ DEST-dhcpcd-6.2.1/lib/dhcpcd/dhcpcd-hooks/20-resolv.conf    2014-01-23
18:39:18.301906188 -0300
@@ -115,7 +115,7 @@
        if [ -n "$new_domain_search" -a \
            "$new_domain_search" != "$new_domain_name" ]
        then
-               if valid_domainname_list; then
+               if valid_domainname_list $new_domain_search; then
                        conf="${conf}search $new_domain_search$NL"
                else
                        syslog err "Invalid domain name in list: 
$new_domain_search"
}}}

I would really be glad if your problem could be solved!

-- 
[]s,
Fernando
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to