#!/bin/sh -e

# Check configuration file
if [ -f /etc/default/laptop-netconf ]; then
  . /etc/default/laptop-netconf

  # If active, spawn the real laptop-netconf
  if [ "$ACTIVE" = "yes" ]; then
    exec "/usr/lib/laptop-netconf/laptop-netconf" "$@"
    exit 1
  fi
fi

# Print out error message
echo "laptop-netconf has not been activated.  See laptop-netconf(8)."
exit 1
