mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-22 05:27:24 +00:00
save dmesg log
This commit is contained in:
parent
fe102143de
commit
64455f5a44
@ -146,6 +146,23 @@ swap_enable() {
|
||||
fi
|
||||
}
|
||||
|
||||
dmesg_log() {
|
||||
|
||||
DMESG_LOG=/opt/wz_mini/log/dmesg
|
||||
if [[ -e $DMESG_LOG.log || -L $DMESG_LOG.log ]] ; then
|
||||
i=0
|
||||
while [[ -e $DMESG_LOG.log.$i || -L $DMESG_LOG.log.$i ]] ; do
|
||||
let i++
|
||||
done
|
||||
mv $DMESG_LOG.log $DMESG_LOG.log.$i
|
||||
DMESG_LOG=$DMESG_LOG
|
||||
fi
|
||||
touch -- "$DMESG_LOG".log
|
||||
dmesg > $DMESG_LOG.log 2>&1
|
||||
|
||||
}
|
||||
|
||||
|
||||
first_run_check
|
||||
wait_sdroot
|
||||
wait_wlan
|
||||
@ -523,6 +540,7 @@ hostname_set
|
||||
touch /opt/wz_mini/tmp/.run_mmc_firstrun
|
||||
pkill -f dumpload #Kill dumpload so it won't waste cpu or ram gathering cores when something crashes
|
||||
sysctl -w kernel.core_pattern='|/bin/false'
|
||||
dmesg_log
|
||||
sync;echo 3 > /proc/sys/vm/drop_caches
|
||||
|
||||
|
||||
|
2
file.chk
2
file.chk
@ -3,7 +3,7 @@ d41d8cd98f00b204e9800998ecf8427e SD_ROOT/wz_mini/mnt/.gitignore
|
||||
34c6a4c3a941ff2becd9f487826d7692 SD_ROOT/wz_mini/etc/uvc.config
|
||||
b4e404d9205a8e139571d4e5d2b55e92 SD_ROOT/wz_mini/etc/init.d/wz_cam.sh
|
||||
a9b1a18021476b492c2f4960a9cd1656 SD_ROOT/wz_mini/etc/init.d/v3_init.sh
|
||||
a665ee24702edd7570ba57bedafb919f SD_ROOT/wz_mini/etc/init.d/wz_user.sh
|
||||
3fda84385377d0242f615be17ae8c3ad SD_ROOT/wz_mini/etc/init.d/wz_user.sh
|
||||
86082f8c1b7de18463731372bac630d1 SD_ROOT/wz_mini/etc/init.d/wz_post.sh
|
||||
e3034eac02d8eda9902ca9cf89f0a586 SD_ROOT/wz_mini/etc/inittab
|
||||
8b5e58acfcbb20034dc4873a08b45fd9 SD_ROOT/wz_mini/etc/profile
|
||||
|
Loading…
Reference in New Issue
Block a user