summaryrefslogtreecommitdiffstats
path: root/package/samba/files
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-08-22 07:11:48 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-08-22 07:11:48 +0000
commitb53b4039b422d28c39389ea8f42f19061b48102f (patch)
tree45b2062826fe2aa6ac8d01631411831653a685d6 /package/samba/files
parentc53dbb284076ac7a68628788df3d02dd62bca6d4 (diff)
add samba package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1719 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/samba/files')
-rw-r--r--package/samba/files/samba.init26
-rw-r--r--package/samba/files/smb.conf14
2 files changed, 40 insertions, 0 deletions
diff --git a/package/samba/files/samba.init b/package/samba/files/samba.init
new file mode 100644
index 000000000..43ab372ca
--- /dev/null
+++ b/package/samba/files/samba.init
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+DEFAULT=/etc/default/samba
+LOG_D=/var/log/samba
+RUN_D=/var/run/samba
+NMBD_PID_F=$RUN_D/nmbd.pid
+SMBD_PID_F=$RUN_D/smbd.pid
+[ -f $DEFAULT ] && . $DEFAULT
+
+case $1 in
+ start)
+ mkdir -p $LOG_D
+ mkdir -p $RUN_D
+ nmbd -D $NMBD_OPTIONS
+ smbd -D $SMBD_OPTIONS
+ ;;
+ stop)
+ [ -f $SMBD_PID_F ] && kill $(cat $SMBD_PID_F)
+ [ -f $NMBD_PID_F ] && kill $(cat $NMBD_PID_F)
+ ;;
+ *)
+ echo "usage: $0 (start|stop)"
+ exit 1
+esac
+
+exit $?
diff --git a/package/samba/files/smb.conf b/package/samba/files/smb.conf
new file mode 100644
index 000000000..4c4cd1dab
--- /dev/null
+++ b/package/samba/files/smb.conf
@@ -0,0 +1,14 @@
+[global]
+ workgroup = OpenWrt
+ security = share
+ guest account = nobody
+ local master = yes
+ name resolve order = lmhosts hosts bcast
+
+[tmp]
+ comment = /tmp
+ path = /tmp
+ browseable = yes
+ public = yes
+ writeable = no
+