diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2015-06-01 15:19:16 -0500 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-06-01 15:21:28 -0500 |
commit | 732a5c76d6a674a7ba79cdc90366b6a4f521389f (patch) | |
tree | 73d60bbc9e3ba6ed22a3532c7ddec25a37acd411 /package/samba3/files | |
parent | 8e5509cafa5a21dd4c70c2c2ca6946390a7a0f80 (diff) |
readd samba3 for kodi
Diffstat (limited to 'package/samba3/files')
-rw-r--r-- | package/samba3/files/samba.conffiles | 1 | ||||
-rw-r--r-- | package/samba3/files/samba.init | 31 | ||||
-rw-r--r-- | package/samba3/files/samba.postinst | 3 | ||||
-rw-r--r-- | package/samba3/files/smb.conf | 24 |
4 files changed, 59 insertions, 0 deletions
diff --git a/package/samba3/files/samba.conffiles b/package/samba3/files/samba.conffiles new file mode 100644 index 000000000..5c10c50ad --- /dev/null +++ b/package/samba3/files/samba.conffiles @@ -0,0 +1 @@ +/etc/samba/smb.conf diff --git a/package/samba3/files/samba.init b/package/samba3/files/samba.init new file mode 100644 index 000000000..b7e370484 --- /dev/null +++ b/package/samba3/files/samba.init @@ -0,0 +1,31 @@ +#!/bin/sh +#PKG samba +#INIT 80 +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${samba:-NO}" = x"NO" && exit 0 + test x"$samba" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start + exec sh $0 start + ;; +start) + [ -d /var/run/samba ] || mkdir -p /var/run/samba + [ -d /var/log/samba ] || mkdir -p /var/log/samba + /usr/sbin/nmbd -D + /usr/sbin/smbd -D + ;; +stop) + kill $(pgrep -f /usr/sbin/nmbd) + kill $(pgrep -f /usr/sbin/smbd) + ;; +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "usage: $0 {start | stop | restart}" + exit 1 +esac +exit $? diff --git a/package/samba3/files/samba.postinst b/package/samba3/files/samba.postinst new file mode 100644 index 000000000..876c7bc72 --- /dev/null +++ b/package/samba3/files/samba.postinst @@ -0,0 +1,3 @@ +#!/bin/sh +. $IPKG_INSTROOT/etc/functions.sh +add_rcconf samba NO diff --git a/package/samba3/files/smb.conf b/package/samba3/files/smb.conf new file mode 100644 index 000000000..8cae4dc2c --- /dev/null +++ b/package/samba3/files/smb.conf @@ -0,0 +1,24 @@ +[global] + syslog = 2 + syslog only = yes + log level = 1 + workgroup = OpenADK + server string = OpenADK Samba Server + security = user + encrypt passwords = yes + guest account = nobody + local master = yes + name resolve order = hosts bcast + pid directory = /var/run/samba + load printers = no + printcap name = /dev/null + unix charset = UTF8 + dos charset = ASCII + display charset = UTF8 + unix extensions = yes + +#[media] +# comment = Media files +# read only = yes +# guest ok = yes +# path = /media |