From 0823605bfd5fd34993872b35e729031a6e8d29ea Mon Sep 17 00:00:00 2001 From: "b.waal" Date: Tue, 12 Sep 2023 19:17:03 +0200 Subject: [PATCH] Update 'MOTD/greetings-pinger.sh' Added removal option after configuring --- MOTD/greetings-pinger.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MOTD/greetings-pinger.sh b/MOTD/greetings-pinger.sh index 65f2d54..774d4bb 100644 --- a/MOTD/greetings-pinger.sh +++ b/MOTD/greetings-pinger.sh @@ -12,5 +12,9 @@ echo "" echo -e "Make sure to rename /etc/systemd/system/Smartping-NAME.service" echo -e "Make sure to configure /etc/systemd/system/Smartping-NAME.service" echo "" +echo "" echo -e "Start the Smartpinger with:" -echo -e "systemctl enable --now Smartpinger-NAME" \ No newline at end of file +echo -e "systemctl daemon-reload && systemctl enable --now Smartpinger-NAME" +echo "" +echo -e "To remove this message run:" +echo -e "sed -i '8,20d' /etc/profile.d/greetings.sh" \ No newline at end of file