<commit_before>#!/bin/sh

HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin
PS1="linaro-test [rc=$(echo \$?)]# "
export HOME PS1 PATH

early_setup() {
    mkdir /proc /sys /tmp /run
    mount -t proc proc /proc
    mount -t sysfs sysfs /sys

    ln -s /run /var/run

    # ARM AMBA SoCs
    mknod /dev/ttyAMA0 c 204 64
    mknod /dev/ttyAMA2 c 204 66
    # Samsung ARM SoCs
    mknod /dev/ttySAC2 c 204 66
    # TI OMAP SoCs
    mknod /dev/ttyO0 c 249 0
    mknod /dev/ttyO2 c 249 2

    chmod 0666 /dev/tty*
    chown root:tty /dev/tty*
}

read_args() {
    [ -z "$CMDLINE" ] && CMDLINE=`cat /proc/cmdline`
    for arg in $CMDLINE; do
        optarg=`expr "x$arg" : 'x[^=]*=\(.*\)'`
        case $arg in
            console=*)
                tty=${arg#console=}
                tty=${tty#/dev/}

                case $tty in
                    tty[a-zA-Z]* )
                        port=${tty%%,*}
                esac ;;<commit_msg>linaro-image-minimal-initramfs: use devtmpfs over mknod to increase portability<commit_after>#!/bin/sh

HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin
PS1="linaro-test [rc=$(echo \$?)]# "
export HOME PS1 PATH

early_setup() {
    mkdir -p /proc /sys /tmp /run
    mount -t proc proc /proc
    mount -t sysfs sysfs /sys
    mount -t devtmpfs none /dev

    ln -s /run /var/run

    chmod 0666 /dev/tty*
    chown root:tty /dev/tty*
}

read_args() {
    [ -z "$CMDLINE" ] && CMDLINE=`cat /proc/cmdline`
    for arg in $CMDLINE; do
        optarg=`expr "x$arg" : 'x[^=]*=\(.*\)'`
        case $arg in
            console=*)
                tty=${arg#console=}
                tty=${tty#/dev/}

                case $tty in
                    tty[a-zA-Z]* )
                        port=${tty%%,*}
                esac ;;
{'fraction_non_alphanumeric': 0.15885714285714286, 'fraction_numerical': 0.022857142857142857, 'mean_word_length': 1.6291291291291292, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4554882', 'n_tokens_mistral': 731, 'n_tokens_neox': 639, 'n_words': 167}