#!/bin/sh case "${ACTION:-ifup}" in ifup) gpioctl set 1 ;; ifdown) gpioctl dirout 1 ;; esac