1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2008 OpenWrt.org
6 SYSFS_DRIVERDIR
="$SYSFS/bus/platform/drivers/spi-gpio-mmc"
8 # add_device(name, DI_pin, DO_pin, CLK_pin, CS_pin, mode)
10 echo -n "$1" "$2","$3","$4","$5" "$6" > $SYSFS_DRIVERDIR/add
15 echo -n "$1" > $SYSFS_DRIVERDIR/remove
19 #FIXME we should use a config file, but I dunno how that parser works.
20 add_device
"default" 5 4 3 7 0
24 remove_device
"default"
This page took 0.059092 seconds and 5 git commands to generate.