Skip to contentSkip to conversation

package/sudo: remove dist example config

PATCH New Stephan Henningsen 2 participants 2 messages Nov 4, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/sudo: remove dist example config

From: Stephan Henningsen <[email protected]>

---
 package/sudo/sudo.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/sudo/sudo.mk +6 -0
index cf8b63b1db..ab58f308ec 100644
@@ -64,4 +64,10 @@ define SUDO_PERMISSIONS
 	/usr/bin/sudo f 4755 0 0 - - - - -
 endef
 
+define SUDO_REMOVE_DIST_EXAMPLES
+	$(RM) $(TARGET_DIR)/etc/sudoers.dist
+	rmdir $(TARGET_DIR)/etc/sudoers.d
+endef
+SUDO_POST_INSTALL_TARGET_HOOKS += SUDO_REMOVE_DIST_EXAMPLES
+
 $(eval $(autotools-package))
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 package/sudo: remove dist example config

Quoted 6 lines · On Mon, 4 Nov 2019 20:26:19 +0100 Stephan Henningsen <[email protected]>…

From: Stephan Henningsen <[email protected]>

---
 package/sudo/sudo.mk | 6 ++++++
 1 file changed, 6 insertions(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com