You don't write what modifications did you do with your router except samba configuration. Without this info it is not possible to say why is your asus not routing to internet. Definitely it is not caused by samba.
For your samba "problem" - it looks like you didn't make the post-boot script executable and forgot to put #!/bin/sh at begining of the file
You can fix it with following commands:
Code:
echo "#!/bin/sh" > /usr/local/sbin/post-boot
echo "/usr/sbin/smbd -D" >> /usr/local/sbin/post-boot
echo "/usr/sbin/nmbd -D" >> /usr/local/sbin/post-boot
chmod +x /usr/local/sbin/post-boot
flashfs save
flashfs commit
flashfs enable
reboot
I presume you have only 2 lines in post-boot right now. If you added other lines to your post-boot, just add the first line using vi editor.