I'm trying to insert some veto rules into my smb.conf file via the following smb.postconf, located at /jffs/scripts/smb.postconf:
Unfortunately it doesn't appear to have any effect on the file. I've tested it locally on macOS and it works fine.
I have chmoded the file too:
Is there something I'm missing? Log shows that it's being executed but it just doesn't seem to do a single thing, regardless of what arguments I pass to sed. Also worth noting I'm a bit of a unix noob so assume nothing!
Code:
#!/bin/sh
CONFIG=$1
sed -i '' 's:veto files = :veto files = /._*/.DS_Store/.Trashes/.TemporaryItems:g' $CONFIG
Unfortunately it doesn't appear to have any effect on the file. I've tested it locally on macOS and it works fine.
I have chmoded the file too:
Code:
chmod a+rx /jffs/scripts/smb.postconf
Is there something I'm missing? Log shows that it's being executed but it just doesn't seem to do a single thing, regardless of what arguments I pass to sed. Also worth noting I'm a bit of a unix noob so assume nothing!
Last edited: