Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Made by Smiba, edit everything to your needs!
- #THIS IS THE WORST WAY TO GET THE LOAD.. i guess
- load5M=$(uptime |grep load | awk '{print $10}')
- load10M=$(uptime |grep load | awk '{print $11}')
- load15M=$(uptime |grep load | awk '{print $12}')
- users=$(uptime |grep load | awk '{print $6}')
- hdduse=$(df -h | grep /dev/simfs | awk '{print $3}' | sed 's/G/GB/g' | sed 's/T/TB/g' | sed 's/M/MB/g')
- hddspace=$(df -h | grep /dev/simfs | awk '{print $2}' | sed 's/G/GB/g' | sed 's/T/TB/g' | sed 's/M/MB/g')
- datarecv1=$(ifconfig | grep "RX bytes" | sed 's/(//g' | sed 's/)//g' | awk '{print $3}' | sed -n 2p)
- datarecv2=$(ifconfig | grep "RX bytes" | sed 's/(//g' | sed 's/)//g' | awk '{print $4}' | sed -n 2p)
- datasent1=$(ifconfig | grep "TX bytes" | sed 's/(//g' | sed 's/)//g' | awk '{print $7}' | sed -n 2p)
- datasent2=$(ifconfig | grep "TX bytes" | sed 's/(//g' | sed 's/)//g' | awk '{print $8}' | sed -n 2p)
- money=$(dogecoind getbalance | cut -f1 -d".")
- stats="Welcome $USER! Current Load: $load5M $load10M $load15M"
- if [ $users > 1 ]
- then
- areis="are"
- userss="ponies"
- else
- areis="is"
- userss="pony"
- fi
- stats2="There $areis currently $users $userss logged in"
- stats3="You have $hdduse in use of your $hddspace space"
- stats4="In your doge wallet there are $money bits"
- stats5="Since the last boot you've sent $datasent1$datasent2 and received $datarecv1$datarecv2"
- ponysay -fderpy $stats $'\n'$stats2 $'\n'$stats3 $'\n'$stats4 $'\n'$stats5
Advertisement
Add Comment
Please, Sign In to add comment