diff options
Diffstat (limited to 'meta/packages/libgsmd/files/default')
-rw-r--r-- | meta/packages/libgsmd/files/default | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/meta/packages/libgsmd/files/default b/meta/packages/libgsmd/files/default new file mode 100644 index 000000000..761100f70 --- /dev/null +++ b/meta/packages/libgsmd/files/default @@ -0,0 +1,48 @@ +# gsmd This shell script configures for the gsmd init script. + +. /etc/init.d/functions + +case `cpuinfo_id` in + "GTA01"|"GTA02") + GSMD_OPTS="-s 115200 -F" + GSM_POW="/sys/bus/platform/devices/gta01-pm-gsm.0/power_on" + GSM_RES="/sys/bus/platform/devices/gta01-pm-gsm.0/reset" + GSM_DEV="/dev/ttySAC0" + ;; + "HTC Apache"|"HTC Blueangel"|"HTC Universal") + GSMD_OPTS="-s 115200 -F" + GSM_DEV="/dev/ttyS0" + ;; + "HTC Himalaya") + GSMD_OPTS="-s 115200 -F" + GSM_DEV="/dev/ttyS2" + ;; + "HTC Magician") + GSMD_OPTS="-s 115200 -F" + GSM_DEV="/dev/ttyS1" + ;; + "Palm Treo 650") + GSMD_OPTS="-s 460800 -F -w 1" + GSM_DEV="/dev/ttyS0" + ;; + "Motorola Ezx Platform") + GSMD_OPTS="-s 115200 -F -v ti" + GSM_DEV="/dev/mux0" + ;; + *) + # Unknown board + + # If you must specify special options, uncomment and modify the next line + #GSMD_OPTS="-s 115200 -F" + + # If your GSM device needs to be powered up, uncomment and modify the next line + #GSM_POW="/sys/bus/platform/devices/gta01-pm-gsm.0/power_on" + + # If your GSM device then needs to be reset, uncomment and modify the next line + #GSM_RES="/sys/bus/platform/devices/gta01-pm-gsm.0/reset" + + # This should be in a common /etc/default/serial, together with + # BT_DEV and IR_DEV for devices that have those on a serial port + #GSM_DEV="/dev/ttyS1" + ;; +esac |