rc.lokale Datei nicht funktioniert raspberry pi

Dies ist der Inhalt meiner /etc/rc.local - Datei. Es soll laufen auf login auf meinem raspberry pi, aber es meldet sich gerade in in (da bin ich mit auto-login) und dann tut sich nichts, d.h. es sitzt nur da, mit pi@raspberrypi ~$_ wartet auf einen Befehl. Ich habe keine Ahnung, warum es nicht funktioniert, noch keine Erfahrung mit bash-Skripten.

Sollte es mount usb, dann führen Sie eine Datei auf usb-sagte es aber nicht.

    #!/bin/sh -e
    #
    # rc.local
    #
    # This script is executed at the end of each multiuser runlevel.
    # Make sure that the script will "exit 0" on success or any other
    # value on error.
    #
    # In order to enable or disable this script just change the execution
    # bits.
    #
    # By default this script does nothing.


    sudo /bin/mount /dev/sda1 /media/robousb
    sudo python media/robousb/Robopython/usercode_old.py

    exit 0

InformationsquelleAutor user2137452 | 2014-05-28

Schreibe einen Kommentar