#!/bin/sh case "$1" in # At the start of zavai status) ;; pre) exec om gsm power 1 ;; post) exec om gsm power 0 ;; # Run, blocking until the process ends run) if [ -x /usr/bin/frameworkd ] then # Start frameworkd for GSM services only exec /usr/bin/frameworkd -s ogsmd > /tmp/zavai-frameworkd.log 2>&1 else # For testing exec sleep 10 fi ;; *) echo "Usage: $0 {run|status}." >&2 exit 1 ;; esac exit 0