### BEGIN INIT INFO
# Provides: captPike
# Required-Start: $all
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Display IP address via LED at boot time
# Description: Display IP address via LED at boot time
### END INIT INFO
#! /bin/sh
# /etc/init.d/captPike

case "$1" in
 start)
   echo "captPike Blinks IP Address"
   # Replace wlan0 with alternate interface if needed
   cd /home/pi
   ifconfig > ifconfig.txt
   sudo ./captPike wlan0 
   ;;
 stop)
   echo "Stopping captPike"
   ;;
 *)
   echo "Usage: /etc/init.d/captPike.sh"
   exit 1
   ;;
esac

exit 0
