From 127e6eccf0085149a0786cb2cfb96d32f4a31c54 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 13 Jun 2015 15:37:41 -0500 Subject: fix samba3 package --- package/samba3/files/samba.conffiles | 1 - package/samba3/files/samba.init | 31 ------------------------------- package/samba3/files/samba.postinst | 3 --- package/samba3/files/samba3.conffiles | 1 + package/samba3/files/samba3.init | 31 +++++++++++++++++++++++++++++++ package/samba3/files/samba3.postinst | 3 +++ 6 files changed, 35 insertions(+), 35 deletions(-) delete mode 100644 package/samba3/files/samba.conffiles delete mode 100644 package/samba3/files/samba.init delete mode 100644 package/samba3/files/samba.postinst create mode 100644 package/samba3/files/samba3.conffiles create mode 100644 package/samba3/files/samba3.init create mode 100644 package/samba3/files/samba3.postinst (limited to 'package/samba3/files') diff --git a/package/samba3/files/samba.conffiles b/package/samba3/files/samba.conffiles deleted file mode 100644 index 5c10c50ad..000000000 --- a/package/samba3/files/samba.conffiles +++ /dev/null @@ -1 +0,0 @@ -/etc/samba/smb.conf diff --git a/package/samba3/files/samba.init b/package/samba3/files/samba.init deleted file mode 100644 index b7e370484..000000000 --- a/package/samba3/files/samba.init +++ /dev/null @@ -1,31 +0,0 @@ -#!/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 deleted file mode 100644 index 876c7bc72..000000000 --- a/package/samba3/files/samba.postinst +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -. $IPKG_INSTROOT/etc/functions.sh -add_rcconf samba NO diff --git a/package/samba3/files/samba3.conffiles b/package/samba3/files/samba3.conffiles new file mode 100644 index 000000000..5c10c50ad --- /dev/null +++ b/package/samba3/files/samba3.conffiles @@ -0,0 +1 @@ +/etc/samba/smb.conf diff --git a/package/samba3/files/samba3.init b/package/samba3/files/samba3.init new file mode 100644 index 000000000..ce327263c --- /dev/null +++ b/package/samba3/files/samba3.init @@ -0,0 +1,31 @@ +#!/bin/sh +#PKG samba3 +#INIT 80 +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${samba3:-NO}" = x"NO" && exit 0 + test x"$samba3" = 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/samba3.postinst b/package/samba3/files/samba3.postinst new file mode 100644 index 000000000..c198dda6f --- /dev/null +++ b/package/samba3/files/samba3.postinst @@ -0,0 +1,3 @@ +#!/bin/sh +. $IPKG_INSTROOT/etc/functions.sh +add_rcconf samba3 NO -- cgit v1.2.3