BASH   48

gprs on

Guest on 25th May 2022 07:10:15 PM

  1. #!/bin/sh
  2. if ! test -c test -c /dev/ppp ; then
  3. mknod /dev/ppp c 108 0
  4. fi
  5. rmmod g_file_storage g_ether pxa27x_udc 2>/dev/null
  6. modprobe ohci-hcd
  7. rfcomm bind all
  8. pppd /dev/rfcomm0 connect "chat -v -t 120 -f /etc/ppp/chat/se-t630" disconnect "chat -v -t 60 -f /etc/ppp/chat/se-t630-hup" defaultroute noipdefault usepeerdns\
  9.     nocrtscts noauth lcp-echo-interval 0 lcp-echo-failure 0 defaultroute
  10. #"" "ATD*99***1#"
  11. #"CONNECT"
  12.  
  13. #cp -a /var/run/ppp/resolv.conf /etc/resolv.conf
  14. #cp -a /var/volatile/run/resolv.conf /etc/resolv.conf

Raw Paste


Login or Register to edit or fork this paste. It's free.