#!/bin/sh # # Handler for headphone jack events # # $1 = headphone jack status (0 or 1 - 1 = present) # if [ -z "$1" ]; then echo "Incorrect usage" exit 1 fi . @appconfdir@/config #echo "Headphone status now: $1" if [ -x @bindir@/zaurus-mixer-handler ]; then @bindir@/zaurus-mixer-handler $1 exit 0 fi #Default case for no mixer handler if [ "x$1" = "x1" ]; then @appconfdir@/scripts/zaurus-mixer-callback Headphone Off else @appconfdir@/scripts/zaurus-mixer-callback Off On fi