parv.ashwani 4 weeks ago
parent
commit
8143014d43
1 changed files with 19 additions and 0 deletions
  1. 19 0
      motd_las

+ 19 - 0
motd_las

@@ -0,0 +1,19 @@
+#!/bin/sh
+
+# Step 1: Navigate to the /nsconfig directory
+cd /nsconfig/
+
+# Step 2: Create a motd file
+touch motd
+
+# Step 3: Add the banner content to the motd file
+echo -e "*************************************************************\n*                     LAS Activated                      *\n*               Contact: Parv Ashwani                    *\n*************************************************************\n" > /nsconfig/motd
+
+# Step 4: Create a symbolic link to the /etc/motd file
+ln -s /nsconfig/motd /etc/motd
+
+# Step 5: Add the symbolic link creation command to the rc.netscaler file
+echo "ln -s /nsconfig/motd /etc/motd" >> /nsconfig/rc.netscaler
+
+# Step 6: Optional - Restart the NetScaler for the changes to take effect
+echo "MOTD banner added successfully!"