To enter the PIN for your Huawei E220 HSDPA Modem under GNU/Linux without using a terminal emulator, ASM Software offers you the following interactive Perl script. Make sure to have kdialog installed. Kdialog is used to display the GUI.
The program checks if the modem is connected to the USB system and asks you for your PIN. Finally it tries to program the modem with the PIN you have entered with the proper AT command. A message is shown to reflect the status of the operation.
This code is based upon various sources which automate PIN setting on various UMTS data devices.
Download the script packed with Gzip: enterPIN.gz