#!/system/bin/sh

#Prints an error message then exits the program.
#It takes two arguments.
#The first one is the error code.
#And the second the error message

error() {
  echo $2 1>&2
  exit $1
}