revise paths, add ethernet deps

This commit is contained in:
Alfonso Gamboa
2022-04-12 23:26:15 -07:00
parent b63fe86438
commit 448941ba59
10 changed files with 74 additions and 34 deletions

View File

@@ -0,0 +1,24 @@
#!/bin/sh
###
###DO NOT MODIFY UNLESS YOU KNOW WHAT YOU ARE DOING
###
echo '
__ ________ __ __ _____ _ _ _____
\ \ / |___ / | \/ |_ _| \ | |_ _|
\ \ /\ / / / / | \ / | | | | \| | | |
\ \/ \/ / / / | |\/| | | | | . ` | | |
\ /\ / / /__ | | | |_| |_| |\ |_| |_
\/ \/ /_____| |_| |_|_____|_| \_|_____|
______
|______|
'
mount -t tmpfs /tmp
cp /opt/wz_mini/etc/shadow /tmp/
mount --bind /tmp/shadow /etc/shadow
chmod 400 /etc/shadow
{ sleep 30; /media/mmc/wz_mini/run_mmc.sh > /media/mmc/wz_mini/wz_mini_hacks.log; } &
/linuxrc

View File

@@ -0,0 +1,18 @@
# Set PS1
if [ "$PS1" ]; then
if [ "`id -u`" -eq 0 ]; then
export PS1='[\u@\h:\W]# '
else
export PS1='[\u@\h:\W]$ '
fi
fi
# Set terminal env
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/media/mmc/wz_mini/bin
export PATH=/system/bin:$PATH
export LD_LIBRARY_PATH=/system/lib
export LD_LIBRARY_PATH=/thirdlib:$LD_LIBRARY_PATH
#export TZ=UTC-8
# Set directoty and file default create permission
umask 022