PATH=$PATH:/sbin:/usr/sbin
# root partition
rootpart=$(rdev | cut -d ' ' -f 1)
rootpart=$(grep -o "root=[^ ]*" /proc/cmdline | cut -d= -f2)
# temporary directory
tmpdir=${TMPDIR-/tmp}