You can create a custom rule in /etc/udev/rules.d directory to do the eject automatically with the following content
#custom rule /etc/udev/rules.d/98-nokia-cs-10.rules
#in the case of Nokia CS-10
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0421", ATTRS{idProduct}=="060c", ACTION=="add", RUN+="/usr/bin/eject -s %k", OPTIONS+="last_rule"
You can create a custom rule in /etc/udev/rules.d directory to do the eject automatically with the following content
#custom rule /etc/udev/ rules.d/ 98-nokia- cs-10.rules =="0421" , ATTRS{idProduct }=="060c" , ACTION=="add", RUN+="/ usr/bin/ eject -s %k", OPTIONS+ ="last_ rule"
#in the case of Nokia CS-10
SUBSYSTEMS=="usb", ATTRS{idVendor}
source: http:// blog.nielshorn. net/2010/ 02/using- a-nokia- cs-10-gsm- modem-on- slackware