[Debian-eeepc-devel] Wireless OSD display on 901+ models

Iván Sánchez Ortega ivan at sanchezortega.es
Mon Aug 18 17:49:31 UTC 2008


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 <ivan at sanchezortega.es>

Hay vida inteligente en la tierra? Sí, pero sólo estoy de paso.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hotkey.sh
Type: application/x-shellscript
Size: 2417 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-eeepc-devel/attachments/20080818/7fac96e3/attachment-0003.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wireless.sh
Type: application/x-shellscript
Size: 819 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-eeepc-devel/attachments/20080818/7fac96e3/attachment-0004.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eeepc-acpi-scripts.postinst
Type: application/x-shellscript
Size: 2208 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-eeepc-devel/attachments/20080818/7fac96e3/attachment-0005.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/debian-eeepc-devel/attachments/20080818/7fac96e3/attachment-0001.pgp 


More information about the Debian-eeepc-devel mailing list