1
0
mirror of https://github.com/richardghirst/PiBits.git synced 2025-02-21 15:54:15 +01:00
Robin Mallinson f1ff531a94 **UNTESTED** on the pi itself.
Start off a dummy install script, which just echoes the commands.
2012-11-11 02:03:47 +00:00

11 lines
251 B
Bash

#!/bin/bash
if [ "$ACTION" = "remove" ]; then
rm -f /dev/servoblaster
elif [ "$ACTION" = "add" ]; then
major=$( sed -n 's/ servoblaster//p' /proc/devices )
[ "$major" ] && mknod -m 0666 /dev/servoblaster c $major 0
fi
exit 0