| 12345678910111213141516171819 |
- #!/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!"
|