mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2025-10-15 11:58:03 +00:00
revise paths, add ethernet deps
This commit is contained in:
24
SD_ROOT/wz_mini/etc/init.d/v3_init.sh
Executable file
24
SD_ROOT/wz_mini/etc/init.d/v3_init.sh
Executable 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
|
18
SD_ROOT/wz_mini/etc/profile
Normal file
18
SD_ROOT/wz_mini/etc/profile
Normal 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
|
Reference in New Issue
Block a user