What's new

smb.postconf

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

RAZRus

New Around Here
Hi!
I want to change samba path and make
nano /jffs/scripts/smb.postconf
chmod a+rx /jffs/scripts/smb.postconf

and add this:
#!/bin/sh
CONFIG=$1
source /usr/sbin/helper.sh

pc_replace "path=/tmp/HDD" "path=/tmp/HDD/data" $CONFIG

But it's not working:(
in /etc/smb.conf path not changes
What should I do?:confused:

minidlna.postconf works for me
 
Is your original path in smb.conf /tmp/hdd? Should be like /tmp/mnt/sda1. Also the path in smb.conf has spaces but your altered paths dont have any.

Code:
path = /tmp/mnt/sda1
 
Is your original path in smb.conf /tmp/hdd? Should be like /tmp/mnt/sda1. Also the path in smb.conf has spaces but your altered paths dont have any.

Code:
path = /tmp/mnt/sda1

Thanks for the answer!
But I think that problem with symbol '/' in path it's conflict with sed syntax
How can I pass this?
 
The helper script has a lot of bugs when dealing with character escaping.

You might be better manually using sed for now if the helper functions don't work properly for your specific case.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top