Hi,
I'd like to edit the naming of automatically generated samba shares - root directories of disk attached to router.
Share names are in format "$directory_name at $disk-name" - I'd like to use only directory_name format.
I tried to find where it can be changed and I've found this: https://github.com/RMerl/asuswrt-me...ease/src/router/libdisk/write_smb_conf.c#L546
There, on lines 546 and 606 and 812 I can see how smb.conf file is generated. I was wondering, why I always fall under "else" condition ( line 545 on example), 'cause if I wouldn't the naming would be as I'd like to have it.
I am not that good in understanding that C code, can someone help me understand this condition and ideally explain what can I do to change the name of auto-generated samba shares ?
I'd like to edit the naming of automatically generated samba shares - root directories of disk attached to router.
Share names are in format "$directory_name at $disk-name" - I'd like to use only directory_name format.
I tried to find where it can be changed and I've found this: https://github.com/RMerl/asuswrt-me...ease/src/router/libdisk/write_smb_conf.c#L546
There, on lines 546 and 606 and 812 I can see how smb.conf file is generated. I was wondering, why I always fall under "else" condition ( line 545 on example), 'cause if I wouldn't the naming would be as I'd like to have it.
I am not that good in understanding that C code, can someone help me understand this condition and ideally explain what can I do to change the name of auto-generated samba shares ?