Hi.
I have modified startup scripts from github
for exampe i show services-start.sh
nvram jffs settings
If i right understand after boot and mount partitions on my sda1 i see 4 files and 1 folder.
But it not happening.
What i do wrong?
Thanks for advice.
I have modified startup scripts from github
Code:
admin@RT-N66U:/tmp/home/root# ls -la /jffs/scripts
drwxrwxrwx 2 admin root 0 Oct 1 18:03 .
drwxr-xr-x 5 admin root 0 Jan 1 1970 ..
-r-xr-xr-x 1 admin root 234 Oct 1 18:44 firewall-start.sh
-r-xr-xr-x 1 admin root 41 Oct 1 18:56 init-start.sh
-r-xr-xr-x 1 admin root 234 Oct 1 16:25 nat-start.sh
-r-xr-xr-x 1 admin root 50 Sep 30 21:51 post-mount.sh
-r-xr-xr-x 1 admin root 209 Oct 1 18:40 pre-mount.sh
-r-xr-xr-x 1 admin root 234 Oct 1 18:08 services-start.sh
-r-xr-xr-x 1 admin root 458 Sep 30 21:52 services-stop.sh
-r-xr-xr-x 1 admin root 234 Oct 1 16:24 unmount.sh
-r-xr-xr-x 1 admin root 90 Sep 30 21:51 wan-start.sh
for exampe i show services-start.sh
Code:
admin@RT-N66U:/tmp/home/root# cat /jffs/scripts/services-start.sh
#!/bin/sh
echo 1.txt >> '/mnt/sda1/1.txt';
rm -R /mnt/sda1/test/;
echo 2.txt >> '/mnt/sda1/2.txt';
mkdir /mnt/sda1/test/;
echo 3.txt >> '/mnt/sda1/3.txt'
chmod -R 755 /mnt/sda1/test/;
echo 4.txt >> '/mnt/sda1/4.txt';
admin@RT-N66U:/tmp/home/root# nvram show | grep jffs
jffs2_on=1
size: 44244 bytes (21292 left)
jffs2_exec=1
jffs2_size=6291456
jffs2_format=0
If i right understand after boot and mount partitions on my sda1 i see 4 files and 1 folder.
But it not happening.
What i do wrong?
Thanks for advice.
Last edited: