#!/bin/sh . "./default.conf" # Prepare the cross-compiler for the destination platform, in our # case i486. if test ! "$(getent group cross)"; then groupadd cross fi if test ! "$(getent passwd cross)"; then useradd -m -g cross cross fi # add 'cross' user as sudoer without password if test ! -f /etc/sudoers.d/cross; then echo "cross ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/cross fi if test ! -x /usr/local/bin/ct-ng; then echo "Installing crosstool-ng:" su - cross <