change IP with env var

This commit is contained in:
Marcus 2024-01-02 04:03:54 +01:00
parent 5810da3670
commit 6ed0a5a0aa
2 changed files with 3 additions and 3 deletions

View file

@ -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`
- 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`
- specify IP and PORT: `IPFLOOT=127.0.0.1 FLOOTPORT=1337 ./pixelfloot_bash.sh floot images/lucky-cat.jpg`
```shell
$ ./pixelfloot_bash.sh help

View file

@ -1,8 +1,8 @@
#!/bin/bash
#IPFLOOT="151.217.15.90"
IPFLOOT="192.168.254.7"
FLOOTPORT="1337"
test -z "$IPFLOOT" && IPFLOOT="127.0.0.1"
test -z "$FLOOTPORT" && FLOOTPORT="1337"
########################################################################
FNAME="$(echo $2 | sed -e 's/\..*$//' -e 's/^images\///')"