#!/bin/sh if [ `uname -m` = armv5tejl ]; then echo "Setting up ipkg arch-file" mkdir -p /opt/etc/ipkg cat >> /opt/etc/ipkg/arch.conf << EOF arch all 1 arch any 6 arch noarch 11 arch arm 16 EOF fi touch /etc/profile if ! grep '^PATH=.*/opt/bin' /etc/profile >/dev/null 2>&1 ; then echo "PATH=/opt/bin:/opt/sbin:\$PATH" >> /etc/profile fi if ! grep '^# Optware setup' /etc/init.d/rcS >/dev/null 2>&1 then echo "Modifying /etc/init.d/rcS" [ ! -e /etc/init.d/rcS ] && echo "#!/bin/sh" >/etc/init.d/rcS sed -i -e '/^exit 0/d' /etc/init.d/rcS cat >>/etc/init.d/rcS <