What's new
  • 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!

Custom script Error

tdashmike

Occasional Visitor
Hello,

Could someone help me figure out what I'm doing wrong here? I'm trying to add extra configs to smb.conf to support Apple devices.

https://wiki.samba.org/index.php/Configure_Samba_to_Work_Better_with_Mac_OS_X

Code:
#!/bin/sh
CONFIG=$1
source /usr/sbin/helper.sh

pc_insert "[global]" "vfs objects = fruit streams_xattr" $CONFIG
pc_insert "[global]" "fruit:metadata = stream" $CONFIG
pc_insert "[global]" "fruit:model = MacSamba" $CONFIG
pc_insert "[global]" "fruit:posix_rename = yes" $CONFIG
pc_insert "[global]" "fruit:veto_appledouble = no" $CONFIG
pc_insert "[global]" "fruit:wipe_intentionally_left_blank_rfork = yes" $CONFIG
pc_insert "[global]" "fruit:delete_empty_adfiles = yes" $CONFIG

admin@AC68U:/jffs/scripts# ./smb.postconf
sed: -i requires an argument
sed: -i requires an argument
sed: -i requires an argument
sed: -i requires an argument
sed: -i requires an argument
sed: -i requires an argument
sed: -i requires an argument

Thank you!

- Mike
 
Even after you fix the script it won't make any difference because the router's version of Samba doesn't support vfs_fruit.
 

Similar 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!

Members online

Back
Top