steptail.com

Who put the alphabet in alphabetical order?

User Tools

Site Tools


guides:virtual_modem:script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
guides:virtual_modem:script [2020-03-05 05:18]
omolini
guides:virtual_modem:script [2020-12-22 03:57]
omolini
Line 49: Line 49:
  
 # Script version # Script version
-vmodver=1.4.2+vmodver=1.5.0
  
 # CONFIGURATION # CONFIGURATION
Line 74: Line 74:
 #baud=38400 #baud=38400
 baud=57600 baud=57600
 +
 +# Variable: etherp
 +# Sets the name of the ethernet device for PPP connections.
 +# Usually eth0 for wired and wlan0 for wireless.
 +#
 +etherp=eth0
  
 # Variable: echoser # Variable: echoser
Line 101: Line 107:
 export serport export serport
 export baud export baud
 +export etherp
 export TERM export TERM
  
Line 283: Line 290:
     if [[ $cmd == LOGIN ]]; then     if [[ $cmd == LOGIN ]]; then
       exec 99>&​-       exec 99>&​-
-      /sbin/getty -8 -L ttyAMA0 ​$baud vt100+      /sbin/getty -8 -L $serport ​$baud $TERM
       ttyinit       ttyinit
       exec 99<>/​dev/​$serport       exec 99<>/​dev/​$serport
Line 324: Line 331:
 # RUN PPPD DAEMON # RUN PPPD DAEMON
 # #
-# Oliver Molini ​2019+# Oliver Molini ​2020
  
 # Billy Stoughton II for bug fixes and contributions # Billy Stoughton II for bug fixes and contributions
Line 337: Line 344:
  
 # Variable: etherp # Variable: etherp
-Specify ​the ethernet device to use to connect to your network. +Override ​the ethernet device to use to connect to your network
-#  +# This is set in vmodem.sh, but can be overridden here
-# Default: ​   etherp=eth0 +
-etherp=eth0+# Default: ​   ​#etherp=eth0 ​(commented out) 
 +#etherp=eth0
  
 # Variable: lcpidle # Variable: lcpidle
guides/virtual_modem/script.txt · Last modified: 2022-12-28 03:32 by omolini