Would it work if I use this script?

cd /dev
./MAKEDEV ttyS5
ln -s ttyS5 modem
chmod 777 modem
chmod 777 ttyS5