change IP with env var
This commit is contained in:
parent
5810da3670
commit
6ed0a5a0aa
2 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ pixelfloot was built during the 37c3. in its actual state, its just a mess. I ho
|
||||||
- move image with your cursor (needs `xdotool`): `./pixelfloot_bash.sh floot images/lucky-cat.jpg cursor`
|
- move image with your cursor (needs `xdotool`): `./pixelfloot_bash.sh floot images/lucky-cat.jpg cursor`
|
||||||
- Use a color as "alpha" (remove background): `ALPHACOLOR=FF00FF ./pixelfloot_bash.sh floot images/cursor.ppm cursor`
|
- Use a color as "alpha" (remove background): `ALPHACOLOR=FF00FF ./pixelfloot_bash.sh floot images/cursor.ppm cursor`
|
||||||
- increase No of cuncurrent connections: `FLOOTFORKS=8 ./pixelfloot_bash.sh floot images/lucky-cat.jpg`
|
- increase No of cuncurrent connections: `FLOOTFORKS=8 ./pixelfloot_bash.sh floot images/lucky-cat.jpg`
|
||||||
|
- specify IP and PORT: `IPFLOOT=127.0.0.1 FLOOTPORT=1337 ./pixelfloot_bash.sh floot images/lucky-cat.jpg`
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ ./pixelfloot_bash.sh help
|
$ ./pixelfloot_bash.sh help
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#IPFLOOT="151.217.15.90"
|
#IPFLOOT="151.217.15.90"
|
||||||
IPFLOOT="192.168.254.7"
|
test -z "$IPFLOOT" && IPFLOOT="127.0.0.1"
|
||||||
FLOOTPORT="1337"
|
test -z "$FLOOTPORT" && FLOOTPORT="1337"
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
FNAME="$(echo $2 | sed -e 's/\..*$//' -e 's/^images\///')"
|
FNAME="$(echo $2 | sed -e 's/\..*$//' -e 's/^images\///')"
|
||||||
|
|
Loading…
Reference in a new issue