Merge pull request #10910 from Andy2244/wsdd2-smbd-rename
wsdd2: update init for renamed cifsd->smbd
This commit is contained in:
commit
dbdb19aa4a
2 changed files with 5 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=wsdd2
|
PKG_NAME:=wsdd2
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=https://github.com/Andy2244/wsdd2.git
|
PKG_SOURCE_URL:=https://github.com/Andy2244/wsdd2.git
|
||||||
|
|
|
@ -13,8 +13,8 @@ BI_PARM=""
|
||||||
|
|
||||||
start_service() {
|
start_service() {
|
||||||
|
|
||||||
if [ -e /etc/cifs/smb.conf ] && [ -e /etc/init.d/cifsd ] && /etc/init.d/cifsd running; then
|
if [ -e /etc/smbd/smb.conf ] && [ -e /etc/init.d/smbd ] && /etc/init.d/smbd running; then
|
||||||
SMB_CONF="/etc/cifs/smb.conf"
|
SMB_CONF="/etc/smbd/smb.conf"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -e /etc/samba/smb.conf ]; then
|
if [ -e /etc/samba/smb.conf ]; then
|
||||||
|
@ -26,7 +26,7 @@ start_service() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$SMB_CONF" ]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -82,5 +82,5 @@ start_service() {
|
||||||
|
|
||||||
service_triggers() {
|
service_triggers() {
|
||||||
PROCD_RELOAD_DELAY=1000
|
PROCD_RELOAD_DELAY=1000
|
||||||
procd_add_reload_trigger "dhcp" "system" "samba" "samba4" "cifsd"
|
procd_add_reload_trigger "dhcp" "system" "samba" "samba4" "smbd"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue