Originally Posted by
jr0
Are you executing
Code:
flashfs save && flashfs commit && flashfs enable && reboot
upon saving the file ?
Yes, and the file /usr/local/sbin/post-mount stil exists after I reboot, and permission to the file is -rwxr-xr-x.
Code:
[admin@WL-001A927E6303 sbin]$ ls -la
drwxr-xr-x 1 admin root 0 Aug 19 22:57 .
drwxr-xr-x 1 admin root 0 Jan 1 2000 ..
-rwxr-xr-x 1 admin root 203 Aug 20 16:41 post-mount
[admin@WL-001A927E6303 sbin]$
For debugging I just tried to change the post-mount file to:
Code:
[admin@WL-001A927E6303 sbin]$ more post-mount
#!/bin/sh
#ip neigh change 192.168.1.254 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br0
#ip neigh add 192.168.1.254 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br0
echo "Test" >> /usr/local/sbin/test.txt
[admin@WL-001A927E6303 sbin]$
and reboot with
Code:
flashfs save && flashfs commit && flashfs enable && reboot
After reboot the changes I made to post-mount are still there, but the file /usr/local/sbin/test.txt does not exist.
What is going on?? Do I need to enable the use of the post-mount file somewhere?