motd_las 776 B

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