# # old_revision [c6af65fae3cef86de384e1203d97c909460bf4fa]# # rename "packages/gsm/files/fic-gta01/gsmd"# to "packages/gsm/files/gsmd"# # add_dir "packages/gsm/files/magician"# # add_file "packages/gsm/files/fic-gta01/defaults"# content [4973f0560d4f36eb5ff183afa28c7d7b2fa71726]# # add_file "packages/gsm/files/magician/defaults"# content [7a9d929bccc33dbf317b06cbb56fa0c9a6d323bc]# # patch "packages/gsm/files/gsmd"# from [82f08cc0dffff0c4798dc04712a1a6cce89195ca]# to [014f438a94ffb71f3e8525385a000eb7e27c1d63]# # patch "packages/gsm/libgsmd_svn.bb"# from [eb7e056ea07094894c13b07b63444e5cb0357b80]# to [76a4e6be15efea40bd32fa639a39096aa37550f5]# ============================================================--- packages/gsm/files/fic-gta01/defaults 4973f0560d4f36eb5ff183afa28c7d7b2fa71726+++ packages/gsm/files/fic-gta01/defaults 4973f0560d4f36eb5ff183afa28c7d7b2fa71726@@ -0,0 +1,9 @@+# gsmd This shell script configures for the gsmd init script.++# 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, uncommend and modify the next line+GSM_POW="/sys/bus/platform/devices/gta01-pm-gsm.0/power_on"++GSM_DEV="/dev/ttySAC0"============================================================--- packages/gsm/files/magician/defaults 7a9d929bccc33dbf317b06cbb56fa0c9a6d323bc+++ packages/gsm/files/magician/defaults 7a9d929bccc33dbf317b06cbb56fa0c9a6d323bc@@ -0,0 +1,9 @@+# gsmd This shell script configures for the gsmd init script.++# 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, uncommend and modify the next line+#GSM_POW="/sys/bus/platform/devices/gta01-pm-gsm.0/power_on"++GSM_DEV="/dev/ttyS1"============================================================--- packages/gsm/files/fic-gta01/gsmd 82f08cc0dffff0c4798dc04712a1a6cce89195ca+++ packages/gsm/files/gsmd 014f438a94ffb71f3e8525385a000eb7e27c1d63@@ -6,11 +6,8 @@ # description: Gsmd manages access to a serial- or USB-connected GSM # processname: gsmd-# 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, uncommend and modify the next line-GSM_POW="/sys/bus/platform/devices/gta01-pm-gsm.0/power_on"-GSM_DEV="/dev/ttySAC0"+# Source configuration+. /etc/defaults/gsmd # Source function library. #. /etc/rc.d/init.d/functions@@ -47,10 +44,7 @@ start() { # if [ -e "${GSM_DEV}" ] then- chown uucp.uucp ${GSM_DEV}- mkdir -p /usr/spool/uucp- chown uucp.uucp /usr/spool/uucp- stty -F /dev/ttySAC0 crtscts+ stty -F ${GSM_DEV} crtscts gsmd -p ${GSM_DEV} ${GSMD_OPTS} >/tmp/gsm.log 2>&1 & echo "success" else============================================================--- packages/gsm/libgsmd_svn.bb eb7e056ea07094894c13b07b63444e5cb0357b80+++ packages/gsm/libgsmd_svn.bb 76a4e6be15efea40bd32fa639a39096aa37550f5@@ -7,7 +7,8 @@ SRC_URI = "svn://svn.openmoko.org/trunk/ PR = "r6" SRC_URI = "svn://svn.openmoko.org/trunk/src/target;module=gsm;proto=http \- file://gsmd"+ file://gsmd \+ file://defaults" S = "${WORKDIR}/gsm" inherit autotools pkgconfig update-rc.d@@ -22,6 +23,8 @@ do_install_append() { do_install_append() { install -d ${D}/${sysconfdir}/init.d install -m 0755 ${WORKDIR}/gsmd ${D}/${sysconfdir}/init.d/+ install -d ${D}/${sysconfdir}/defaults+ install ${WORKDIR}/defaults ${D}/${sysconfdir}/defaults/gsmd } PACKAGES =+ "${PN}-tools gsmd"