Accton 2014.05

Hi:
We have created a version for Accton AS5712-54X. Please review it.
I see what you want here is a platform specific init file.  The /etc/init.d/rc.local file is present in ONIE, but it was never used before and is not currently implemented very well.  We should get rid of it.

I want to avoid making any more directories under <machine_name>/rootconf.  Everything we need to do we can do with rootconf/sysroot-lib-onie.

Today we have rootconf/sysroot-lib-onie/S02init-arch.sh, which is good for architecture specific things.

I propose we get rid of /etc/init.d/rc.local and instead add /etc/init.d/init-platform.sh.  Then link init-platform.sh to /etc/rcS.d/S03init-platform.sh, making it run after the architecture init files.

The implementation for init-platform.sh would look like:

    #!/bin/sh
     
    # Platform specific system initializations
     
    cmd="$1"
     
    . /lib/onie/functions
     
    init_platform()
    {
        # NO-OP
        true
    }
     
    [ -r /lib/onie/init-platform ] && . /lib/onie/init-platform
     
    case $cmd in
        start)
            init_platform
            ;;
        *)
            
    esac

After that is done then you can put the USB hub init code in a file named machine/accton/as5712_54x/rootconf/sysroot-lib-onie/init-platform.