El Domingo, 17 de Agosto de 2008, Ben Armstrong escribió:
> What about this to determine the wireless interface instead:
>
> WLAN_IF=`iwconfig 2>/dev/null|cut -d' ' -f1`

IMHO, it's much more elegant to query the eeepc model using dmidecode, then 
write the config file, e.g.:

-----------
model=`dmidecode -s system-product-name`

case $model in
        901|1000|1000H)
                echo eeepc 901 detected: ralink, ra0, bluetooth
                volume_label='Master'
                headphone_label='Headphone'
                wifi_driver='rt2860sta'
                wifi_iface='ra0'
(snip)
echo "
VOLUME_LABEL='$volume_label'
HEADPHONE_LABEL='$headphone_label'
WIFI_DRIVER='$wifi_driver'
WIFI_IFACE='$wifi_iface'
" > /etc/default/eee-acpi-scripts
-----------

This way, of course, you also automatically fix the issue of the alsa channels 
at install time. 


I'm currently reading the debian guidelines on how and when use debconf - so 
please have some care if you use my hacked .postinst file.



Cheers,
-- 
----------------------------------
Iván Sánchez Ortega <[EMAIL PROTECTED]>

Hay vida inteligente en la tierra? Sí, pero sólo estoy de paso.

Attachment: hotkey.sh
Description: application/shellscript

Attachment: wireless.sh
Description: application/shellscript

Attachment: eeepc-acpi-scripts.postinst
Description: application/shellscript

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Debian-eeepc-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/debian-eeepc-devel

Reply via email to