#!/bin/sh
module="gpio"
device="gpio"

# invoke rmmod with all arguments we got
/sbin/rmmod $module $* || exit 1
echo
echo The following Gpio nodes will be removed:
ls -l /dev/gpio*

# Remove stale nodes
rm -f /dev/${device}* 

echo "Gpio Module Unloaded"
echo





