forked from tabacha/ProSafeLinux
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
still work in progress...restructured some of the code
- Loading branch information
Showing
6 changed files
with
77 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,9 @@ https://github.com/Z3po/Netgearizer (We are merging code together.) | |
* Svenne Krap | ||
* Sven Anders | ||
|
||
# Contributors | ||
* Sebastian Cabrera <[email protected]> | ||
|
||
See also: http://git.asbjorn.biz/?p=gs105e.git;a=summary | ||
|
||
It would be nice if you pay attribution to this project if you use this code. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
#!/bin/sh | ||
|
||
NAME=name$(date +%s) | ||
./psl.py --interface $INTERFACE discover | ||
./psl.py --interface $INTERFACE query --mac $MAC all | ||
./psl.py --interface $INTERFACE set --mac $MAC --passwd $PW --name $NAME | ||
./psl.py --interface $INTERFACE discover |grep $NAME | ||
./psl-cli.py --interface $INTERFACE discover | ||
./psl-cli.py --interface $INTERFACE query --mac $MAC all | ||
./psl-cli.py --interface $INTERFACE set --mac $MAC --passwd $PW --name $NAME | ||
./psl-cli.py --interface $INTERFACE discover |grep $NAME | ||
if [ "$?" != "0" ] ; then | ||
echo "Name not set!" | ||
fi | ||
./psl.py --interface $INTERFACE set --mac $MAC --passwd $PW --dhcp off --ip 192.168.11.117 --netmask 255.255.255.0 --gateway 192.168.11.2 | ||
./psl.py --interface $INTERFACE query --mac $MAC dhcp ip gateway netmask | ||
./psl.py --interface $INTERFACE set --mac $MAC --passwd $PW --dhcp off --ip 192.168.11.116 --netmask 255.255.255.0 --gateway 192.168.11.1 | ||
./psl.py --interface $INTERFACE query --mac $MAC dhcp ip gateway netmask | ||
./psl.py --interface $INTERFACE set --mac $MAC --passwd $PW --dhcp on | ||
./psl.py --interface $INTERFACE query --mac $MAC dhcp ip gateway netmask | ||
./psl-cli.py --interface $INTERFACE set --mac $MAC --passwd $PW --dhcp off --ip 192.168.11.117 --netmask 255.255.255.0 --gateway 192.168.11.2 | ||
./psl-cli.py --interface $INTERFACE query --mac $MAC dhcp ip gateway netmask | ||
./psl-cli.py --interface $INTERFACE set --mac $MAC --passwd $PW --dhcp off --ip 192.168.11.116 --netmask 255.255.255.0 --gateway 192.168.11.1 | ||
./psl-cli.py --interface $INTERFACE query --mac $MAC dhcp ip gateway netmask | ||
./psl-cli.py --interface $INTERFACE set --mac $MAC --passwd $PW --dhcp on | ||
./psl-cli.py --interface $INTERFACE query --mac $MAC dhcp ip gateway netmask |