# # 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] # ============================================================ --- 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