updater
#!/bin/sh dir=`dirname $0` cd $dir mount -o remount,rw / cp inittab /etc/ sync reboot
inittab
null::sysinit:/bin/mount -o remount,rw / null::sysinit:/bin/mkdir -p /dev/pts null::sysinit:/bin/mount -a ::sysinit:/etc/init.d/rcS boot /dev/console::respawn:-/bin/sh ::ctrlaltdel:/sbin/reboot null::shutdown:/bin/umount -a -r
打包成TrimuiUpdateV9999_root_login.zip
$ zip TrimuiUpdateV9999_root_login.zip updater inittab
接著刷入TrimuiUpdateV9999_root_login.zip,開機就會以root帳號登入(baudrate: 115200bps)
BusyBox v1.27.2 () built-in shell (ash) _____ _ __ _ |_ _||_| ___ _ _ | | |_| ___ _ _ _ _ | | _ | || | | |__ | || || | ||_'_| | | | || | || _ | |_____||_||_|_||___||_,_| |_| |_||_|_||_|_| Tina is Based on OpenWrt! ---------------------------------------------- Tina Linux (Neptune, 5C1C9C53) ---------------------------------------------- @Linux:/# @Linux:/# cat /proc/cpuinfo processor : 0 model name : ARM926EJ-S rev 5 (v5l) BogoMIPS : 358.80 Features : swp half thumb fastmult edsp java CPU implementer : 0x41 CPU architecture: 5TEJ CPU variant : 0x0 CPU part : 0x926 CPU revision : 5 Hardware : Allwinner A1X (Device Tree) Revision : 0000 Serial : 0000000000000000 @Linux:/# cat /proc/version Linux version 3.10.65 (alfchen@alfchen-ubuntu) (gcc version 6.4.1 (OpenWrt/Linaro GCC 6.4-2017.11 2017-11) ) #508 Sun Aug 30 16:04:27 UTC 2020 @Linux:/# cat /proc/meminfo MemTotal: 58296 kB MemFree: 11024 kB Buffers: 6484 kB Cached: 27084 kB SwapCached: 0 kB Active: 13760 kB Inactive: 23320 kB Active(anon): 1900 kB Inactive(anon): 1652 kB Active(file): 11860 kB Inactive(file): 21668 kB Unevictable: 4 kB Mlocked: 0 kB SwapTotal: 131068 kB SwapFree: 131068 kB Dirty: 0 kB Writeback: 0 kB AnonPages: 3544 kB Mapped: 2816 kB Shmem: 36 kB Slab: 6092 kB SReclaimable: 4204 kB SUnreclaim: 1888 kB KernelStack: 400 kB PageTables: 264 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 160216 kB Committed_AS: 50440 kB VmallocTotal: 958464 kB VmallocUsed: 4152 kB VmallocChunk: 712272 kB