summaryrefslogtreecommitdiff
path: root/package/samba/files
diff options
context:
space:
mode:
Diffstat (limited to 'package/samba/files')
-rw-r--r--package/samba/files/samba.init29
-rw-r--r--package/samba/files/smb.conf17
2 files changed, 46 insertions, 0 deletions
diff --git a/package/samba/files/samba.init b/package/samba/files/samba.init
new file mode 100644
index 000000000..94080f31a
--- /dev/null
+++ b/package/samba/files/samba.init
@@ -0,0 +1,29 @@
+#!/bin/sh
+#FWINIT 80
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+autostart)
+ test x"$samba" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+start)
+ [ -d /var/run/samba ] || mkdir -p /var/run/samba
+ [ -d /var/log/samba ] || mkdir -p /var/log/samba
+ nmbd -D
+ smbd -D
+ ;;
+stop)
+ killall nmbd
+ killall smbd
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "usage: $0 {start | stop | restart}"
+ exit 1
+esac
+exit $?
diff --git a/package/samba/files/smb.conf b/package/samba/files/smb.conf
new file mode 100644
index 000000000..1355c4fb5
--- /dev/null
+++ b/package/samba/files/smb.conf
@@ -0,0 +1,17 @@
+[global]
+ syslog = 1
+ syslog only = yes
+ workgroup = OpenADK
+ server string = OpenADK Samba Server
+ security = share
+ encrypt passwords = yes
+ guest account = root
+ local master = yes
+ name resolve order = hosts bcast
+ pid directory = /var/run/samba
+ load printers = no
+ printcap name = /dev/null
+ unix charset = ASCII
+ dos charset = ASCII
+ display charset = ASCII
+ unix extensions = yes