浏览代码

package/polkit: improve sysv script

As specified in the manual (18.5 The SNNfoo start script),
the name of the script should reflect the name of the daemon,
which in this case in polkitd.

Also remove the redundant/broken reload case.

Signed-off-by: Daniel Lang <d.lang@abatec.at>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Lang Daniel 2 年之前
父节点
当前提交
c2f6422563
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      package/polkit/S50polkitd
  2. 2 2
      package/polkit/polkit.mk

+ 1 - 1
package/polkit/S50polkit → package/polkit/S50polkitd

@@ -40,7 +40,7 @@ restart() {
 }
 
 case "$1" in
-	start|stop|restart|reload)
+	start|stop|restart)
 		"$1";;
 	reload)
 		# Restart, since there is no true "reload" feature.

+ 2 - 2
package/polkit/polkit.mk

@@ -68,8 +68,8 @@ define POLKIT_INSTALL_INIT_SYSTEMD
 endef
 
 define POLKIT_INSTALL_INIT_SYSV
-	$(INSTALL) -D -m 0755 package/polkit/S50polkit \
-		$(TARGET_DIR)/etc/init.d/S50polkit
+	$(INSTALL) -D -m 0755 package/polkit/S50polkitd \
+		$(TARGET_DIR)/etc/init.d/S50polkitd
 endef
 
 $(eval $(meson-package))