Code: Select all
MODEL=`cat /sys/class/power_supply/BAT0/model_name`
Code: Select all
701SD
That is the code I used for the condition of a 701SD in eee-control I worked on with tempestuous.
HTH
Cheers
Code: Select all
MODEL=`cat /sys/class/power_supply/BAT0/model_name`
Code: Select all
701SD
Code: Select all
#! /bin/bash
rm /var/run/wpa_supplicant/*
wpa_supplicant -Dwext -iath0 -c/etc/wpa_supplicant2.conf -B -dd
sleep 5
rm -f /var/lib/dhcpcd/*.info
rm -f /var/run/*.pid
dhcpcd -t 30 -h puppypc -d ath0
Code: Select all
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - wpa_driver_wext_set_drop_unencrypted
Setting scan request: 0 sec 100000 usec
Using existing control interface directory.
Added interface wlan0
Daemonize
Code: Select all
rm -f /var/run/dbus/*
dbus-uuidgen --ensure
dbus-daemon --system
Code: Select all
# bluetooth-wizard
(bluetooth-wizard:13451): Gtk-CRITICAL **: gtk_tree_model_filter_set_visible_func: assertion `GTK_IS_TREE_MODEL_FILTER (filter)' failed
(bluetooth-wizard:13451): Gtk-CRITICAL **: gtk_tree_model_sort_new_with_model: assertion `GTK_IS_TREE_MODEL (child_model)' failed
(bluetooth-wizard:13451): Gtk-CRITICAL **: gtk_tree_sortable_set_sort_column_id: assertion `GTK_IS_TREE_SORTABLE (sortable)' failed
(bluetooth-wizard:13451): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
(bluetooth-wizard:13451): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Code: Select all
# hciconfig hci0 down
# hciconfig hci0 up
# hcitool scan
Scanning ...
00:1C:CC:FB:B8:D4 BlackBerry 8130
00:19:1D:CF:12:AD Nintendo RVL-CNT-01
Code: Select all
(gdb) disass 20022
Dump of assembler code for function show_browse_dialog:
0x00004c10 <show_browse_dialog+0>: Cannot access memory at address 0x4c10
Code: Select all
# bluetoothd -nd
bluetoothd[7587]: Bluetooth daemon 4.55
bluetoothd[7587]: Enabling debug information
bluetoothd[7587]: parsing main.conf
bluetoothd[7587]: discovto=0
bluetoothd[7587]: pairto=0
bluetoothd[7587]: pageto=8192
bluetoothd[7587]: name=%h-%d
bluetoothd[7587]: class=0x000100
bluetoothd[7587]: discov_interval=0
bluetoothd[7587]: Key file does not have key 'DeviceID'
bluetoothd[7587]: Unable to get on D-Bus