From b53b4039b422d28c39389ea8f42f19061b48102f Mon Sep 17 00:00:00 2001 From: nico Date: Mon, 22 Aug 2005 07:11:48 +0000 Subject: add samba package git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1719 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/samba/files/samba.init | 26 ++++++++++++++++++++++++++ package/samba/files/smb.conf | 14 ++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 package/samba/files/samba.init create mode 100644 package/samba/files/smb.conf (limited to 'package/samba/files') 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 + -- cgit v1.2.3