In the cloned filesystem Joshua.Lamorie on the tabletpcreview forum found the following lines in /etc/profile:
if [ -e /mnt/extsdcard/dvt_check ] ;then cd /mnt/extsdcard ./dvt_check fiSo every time the Eee Note is booted, it checks for the existence of a file called
dvt_check in the folder /mnt/extsdcard/ which is, not surprisingly, the external SD card. If the file exists, it is executed as the root user. So running a script is as easy as naming it dvt_check and copying it to the root of a micro-SD card, inserting it the external card slot of the Eee Note and rebooting the device.
So lets try it out with a simple information gathering script: As expected, the script runs as root, uname returns:
Linux Linux 2.6.21 #5 PREEMPT Wed Aug 3 16:59:11 CST 2011 armv5tel unknowndf shows the partitions on the internal SD card:
Filesystem 1k-blocks Used Available Use% Mounted on /dev/mss/blk0p6 2956236 95400 2710664 3% / /dev/mss/blk0p5 806288 563220 202108 74% /usr /dev/mss/blk1p1 7756980 14968 7742012 0% /mnt/extsdcardYou can find the output of dmesg here. The filesystem is basically structured as follows:
/ -+- UserApp +- bin +- boot +- cross-tools +- dev +- eTablet | +- Settings | +- etc | +- var | +- etc +- home +- lib +- lost+found +- media +- mnt +- opt +- proc +- root +- sbin +- srv +- sys +- tmp +- usr | +- bin | +- ... | +- local | | +- ... | | +- eTablet | | | +- bin | | | +- lib | | | +- translator | | +- ... | | | +- ... | +- varApart from the standard Posix folder structure we see two folders:
/eTables and /usr/local/eTablet.
/usr/local/eTablet contains mostly binaries and some translation files.
/eTablet/Settings only contains one file ('Trolltech.conf') with settings for Qt)
/eTablet/etc contains config files for the individual applications developed by Asus, but also the notebook templates (backgrounds) and the SQLite database files that manage the notes, ebooks etcetera.
/eTablet/var contains the actual notes (one gif file per page) and ebooks.