I was always angry at writing full patch to mc.sh to start MC.
Few days ago i edited rootfs by adding symlinks to root, but after this i had to start my scripts with prefix "./" only.
Now i realized, that i do not need edit rootfs, it is enought to change /etc/profile by adding path to symlinks directory. And it works! Now i am happy
1. Copy whole /etc directory to /mtd_rwarea (or you can if you want elsewhere you have free space)
2. Modify
profile in copied /etc by adding
:/mtd_rwarea/scripts/symlinks at the end of PATH=:
Code: Select all
PATH="/usr/sbin:/usr/bin:/bin:/sbin:/mtd_rwarea/scripts/symlinks"
3. Add to samygo.sh command to mount changed /etc:
4. After reboot start MC by entering just mc in console:
Code: Select all
localhost login: root
-sh: id: not found
# mc
Start MC
Warning: file /opt/share/mc/extfs/extfs.ini not found
Warning: file /opt/share/mc/extfs/extfs.ininot found
Warning: file /opt/share/mc/extfs.ini not found
Done!
Edited:
After adding some missing files and export variables, here isn`t any error anymore. Read here.
My scripts are located in /mtd_rwarea/scripts directory and i made some symlinks to have short command in /mtd_rwarea/scripts/symlinks
Now i can start any script i want w/o entering full path to it.
I made some scripts for my needs to run this way (mc, ftp, wifi, remount, reboot, shutdown)...
I hope this info helps to someone
geo650,
I have checked and it works well:
1. move whole mc directory from /mtd_rwarea/ to /mtd_tlib
2. Create empty mc directory in /mtd_rwarea/
3. Add to samygo.sh script this row:
Code: Select all
mount --bind /mtd_tlib/mc /mtd_rwarea/mc
4. Run mc with /mtd_rwarea/path to/mc.sh (or as i made - with help of symlink)
mc.sh should load mc from /mtd_rwarea/mc/
I think i will move my stuff from /mtd_rwarea/ to /mtd_wiselink or /mtd_down - there are 78 + 148 Mb free space compared to 8 mb in rwarea.
Another way to get bigger /mtd_rwarea/ is to mount it to /mtd_wiselink/mtd_rwarea and have 148Mb space for it compared to 11Mb of original one
Add this to your samygo.sh file:
Code: Select all
mount --bind /mtd_wiselink/mtd_rwarea /mtd_rwarea
Just creaty empty dir, copy all content of original dir to wiselink/mtd_rwarea before restart...
To have original back, umount /mtd_rwarea helps.
P.s. anyone knows how to add missing files to mc (extfs.ini,extfs.ini, extfs.ini)?