Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ser2net configuration #8

Open
lynxis opened this issue Oct 28, 2015 · 1 comment
Open

ser2net configuration #8

lynxis opened this issue Oct 28, 2015 · 1 comment

Comments

@lynxis
Copy link
Owner

lynxis commented Oct 28, 2015

#!/bin/sh /etc/rc.common
# Copyright (C) 2008-2014 OpenWrt.org

START=99
STOP=99

USE_PROCD=1
PROG=/usr/sbin/ser2net
NAME=ser2net

start_service() {
    echo "Starting ser2net"
    if [ -x /usr/bin/stty ]; then
        /usr/bin/stty -icrnl -inlcr -F /dev/ttyGS0
    fi
    $PROG -c /etc/ser2net.coreboot.conf -P /var/run/ser2net.pid
    return $?
}

stop_service() {
    echo "Stopping ser2net"
    kill -TERM $(cat /var/run/ser2net.pid)
}

restart_service() {
    echo "Restarting ser2net"
    stop
    start
}
BANNER:banner:Welcome Corebot Screwdriver Debugger: \d\r\n

TRACEFILE:tb1:/tmp/ttyGS0-\p-\Y-\M-\D-\H:\i:\s.\U

LED:rx:beaglebone:green:usr2 10
LED:tx:beaglebone:green:usr3 10

2000:telnet:0:/dev/ttyGS0:921600 NONE 8DATABITS 1STOPBIT -XONXOFF LOCAL banner tb=tb1 led-tx=tx led-rx=rx
2001:telnet:0:/dev/ttyGS0:921600 NONE 8DATABITS 1STOPBIT -XONXOFF LOCAL tb=tb1 led-tx=tx led-rx=rx
@lynxis
Copy link
Owner Author

lynxis commented Oct 28, 2015

config 'led'
    option 'sysfs'      'beaglebone:green:heartbeat'
    option 'interval'   '100'
    option 'trigger'    'heartbeat'

config 'led'
    option 'sysfs'      'beaglebone:green:mmc0'
    option 'dev'        '1-2'
    option 'interval'   '100'
    option 'trigger'    'usbdev'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant