wsdd2: update init for renamed cifsd->smbd 10910/head
authorAndy Walsh <andy.walsh44+github@gmail.com>
Tue, 31 Dec 2019 14:16:07 +0000 (15:16 +0100)
committerAndy Walsh <andy.walsh44+github@gmail.com>
Tue, 31 Dec 2019 14:16:07 +0000 (15:16 +0100)
* update init for renamed cifsd->smbd

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
net/wsdd2/Makefile
net/wsdd2/files/wsdd2.init

index 24c3f0e88a2912a0425d7047ff601cff33c18fa7..550596d058f37473aa4d21be75ba9951203b9ed5 100644 (file)
@@ -1,7 +1,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=wsdd2
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://github.com/Andy2244/wsdd2.git
index 4ade0827901758fe8f32890e8ad62242241fcd92..52fcea2e1f61ed1ff93ebd561392f9ff4b42d9a9 100644 (file)
@@ -13,8 +13,8 @@ BI_PARM=""
 
 start_service() {
 
-       if [ -e /etc/cifs/smb.conf ] && [ -e /etc/init.d/cifsd ] && /etc/init.d/cifsd running; then
-               SMB_CONF="/etc/cifs/smb.conf"
+       if [ -e /etc/smbd/smb.conf ] && [ -e /etc/init.d/smbd ] && /etc/init.d/smbd running; then
+               SMB_CONF="/etc/smbd/smb.conf"
        fi
 
        if [ -e /etc/samba/smb.conf ]; then
@@ -26,7 +26,7 @@ start_service() {
        fi
        
        if [ -z "$SMB_CONF" ]; then
-               logger -p daemon.error -t 'wsdd2' "samba36/4 or cifsd is not running, can't start wsdd2!"
+               logger -p daemon.error -t 'wsdd2' "samba36/4 or smbd is not running, can't start wsdd2!"
                exit 1
        fi
        
@@ -82,5 +82,5 @@ start_service() {
 
 service_triggers() {
        PROCD_RELOAD_DELAY=1000
-       procd_add_reload_trigger "dhcp" "system" "samba" "samba4" "cifsd"
+       procd_add_reload_trigger "dhcp" "system" "samba" "samba4" "smbd"
 }