diff options
author | Steve Price <steve@FreeBSD.org> | 1999-01-26 02:56:30 +0000 |
---|---|---|
committer | Steve Price <steve@FreeBSD.org> | 1999-01-26 02:56:30 +0000 |
commit | 1265dc060ebbf21ab03bd25a10d8b84305e77652 (patch) | |
tree | a6e3c4e0d5898c60f4c8a64e8f3d992444cda284 /net/pppload/files/patch-ab | |
parent | Fix to allow commandline options. (diff) |
No longer borken for ELF. Honor PREFIX and CFLAGS. Fix build on alpha.
Use X11BASE to find the X11R6 directory. Give rid up a bunch of extra
cruft in patch-aa and split into one patch per file.
Notes
Notes:
svn path=/head/; revision=16329
Diffstat (limited to 'net/pppload/files/patch-ab')
-rw-r--r-- | net/pppload/files/patch-ab | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/net/pppload/files/patch-ab b/net/pppload/files/patch-ab new file mode 100644 index 000000000000..2c7732baae69 --- /dev/null +++ b/net/pppload/files/patch-ab @@ -0,0 +1,38 @@ +diff -u --new-file pppload-1.0/Options.C ./Options.C +--- pppload-1.0/Options.C Tue Sep 10 16:55:27 1996 ++++ ./Options.C Fri Jan 30 20:01:38 1998 +@@ -24,7 +24,7 @@ + #include "Options.H" + + Options::Options( int argc, char* argv[] ) +-: _divider( 512 ), _interval( 5 ), _link( 0 ), _period( 60 ), _retry( 60 ), _showTx( true ), _showRx( true ), _txColor( "forestgreen" ), _rxColor( "red" ) ++: _divider( 512 ), _interval( 5 ), _device("tun"), _link( 0 ), _period( 60 ), _retry( 60 ), _showTx( true ), _showRx( true ), _txColor( "forestgreen" ), _rxColor( "red" ) + { + for ( int i = 1; i < argc; i++ ) { + if ( !strcmp( argv[i], "-cmd" ) ) { +@@ -33,6 +33,8 @@ + sscanf( argv[++i], "%d", &_divider ); + } else if ( !strcmp( argv[i], "-i" ) ) { + sscanf( argv[++i], "%d", &_interval ); ++ } else if ( !strcmp( argv[i], "-device" ) ) { ++ strcpy(_device,argv[++i]); + } else if ( !strcmp( argv[i], "-link" ) ) { + sscanf( argv[++i], "%d", &_link ); + } else if ( !strcmp( argv[i], "-p" ) ) { +@@ -60,6 +62,7 @@ + fprintf( stderr, "-d n Horizontal divider spacing in bytes per second (default: %d).\n", divider() ); + fprintf( stderr, "-h Print this help.\n" ); + fprintf( stderr, "-i interval Set the polling interval to be 'interval' seconds (default: %d).\n", interval() ); ++ fprintf( stderr, "-device name Name of the device to monitor (default is tun). \n"); + fprintf( stderr, "-link link The PPP link number to monitor (default: %d).\n", link() ); + fprintf( stderr, "-p period Set the load averaging period to be 'period seconds (default: %d).\n", period() ); + fprintf( stderr, "-retry interval Time between retries when dialling PPP link (default: %d).\n", retry() ); +@@ -74,7 +77,7 @@ + fprintf( stderr, "pppload comes with ABSOLUTELY NO WARRANTY; for details see the LICENSE file.\n" ); + fprintf( stderr, "This is free software, and you are welcome to redistribute it\n" ); + fprintf( stderr, "under certain conditions; see the LICENSE file for details.\n" ); +- ++ fprintf( stderr, "Modified for FreeBSD 1998 \n"); + exit( 1 ); + } + } |