blob: b60cc6a5e8ec30f6220506be863b9c7b31ab6119 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/usr/bin/env bash
set -e
bonnie_bin=`which bonnie++`
[ $? -eq 1 ] && bonnie_bin=/usr/sbin/bonnie++
uid_flags=""
[ "`id -u`" == "0" ] && uid_flags="-u root"
$bonnie_bin $uid_flags -n 100
|