Add source files
This commit is contained in:
parent
d63927544b
commit
d41e2b1e67
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
CMD=$(which useradd)
|
||||||
|
|
||||||
|
for USER in "$@"; do
|
||||||
|
$CMD -m $USER
|
||||||
|
echo "$USER:$USER" | chpasswd
|
||||||
|
done
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/sh
|
||||||
|
init="$(($(cat /sys/class/net/[ew]*/statistics/rx_bytes | paste -sd '+')))"
|
||||||
|
|
||||||
|
printf "Recording bandwidth. Press enter to stop."
|
||||||
|
|
||||||
|
read -r wait
|
||||||
|
|
||||||
|
fin="$(($(cat /sys/class/net/[ew]*/statistics/rx_bytes | paste -sd '+')))"
|
||||||
|
|
||||||
|
printf "%4sB of bandwidth used.\\n" $(numfmt --to=iec $(($fin-$init)))
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/bash
|
||||||
|
for file in *; do mv "$file" `echo $file | tr ' ' '_'` ; done
|
Loading…
Reference in New Issue