What's new

Adding Warning Banner on login

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

jassjerry

New Around Here
Hello everyone,

My first post here, been searching all over the form and so far no one has asked this question.

I have this router at business site, is there a way to put a warning banner when user login, to router via putty.

I am using the latest merlin build firmware.

JJ
 
Thank you for giving me that link

-rw-rw-r-- 1 admin root 62 Jun 6 15:49 motd

motd, is a ready only file I tried to "chmod 755 motd" I get this message
"chmod: motd: Read-only file system" plus that file is located in /rom/etc will it erase my setting when I reboot the router.
 
Thank you for giving me that link

-rw-rw-r-- 1 admin root 62 Jun 6 15:49 motd

motd, is a ready only file I tried to "chmod 755 motd" I get this message
"chmod: motd: Read-only file system" plus that file is located in /rom/etc will it erase my setting when I reboot the router.

I am not sure if there is a solution available for this problem. I've checked the /tmp/etc directory and found that motd file there is symbolically linked to the read-only /rom/etc/motd. Do read these two links:

https://github.com/RMerl/asuswrt-merlin/wiki/Custom-config-files
https://github.com/RMerl/asuswrt-merlin/wiki/User-scripts

It seems to be that motd file is not within the files that is possible to modify using the above methodology in order to survive reboot. My advice is to ask Merlin for advice.

P.S. I assume that your router is running AsusWRT-Merlin firmware.
 
Last edited:
I have read those links before coming on to this board and asking questions.

last time I did this my router got stuck in reboot state and had to reset to factory default to recover.

It will be greatly appreciate, if there is example on what I am going to touching.

#!/bin/sh
CONFIG=$1
source /usr/sbin/helper.sh

pc_replace "dhcp-lease-max=253" "dhcp-lease-max=100" $CONFIG

Yes I am using Merlin build firmware 374.43 and have enabled jffs.

I have PM Merlin, hopefully he can take a look at my post and respond here.
 
Last edited:
Thank you for giving me that link

-rw-rw-r-- 1 admin root 62 Jun 6 15:49 motd

motd, is a ready only file I tried to "chmod 755 motd" I get this message
"chmod: motd: Read-only file system" plus that file is located in /rom/etc will it erase my setting when I reboot the router.
Code:
# cd /tmp/etc
# mv motd motd.old
# vi motd
 
No, you will have to create a user script to make the changes at every boot time. It will probably need to go in services-start

UPDATE: Try this in /jffs/scripts/services-start

Code:
#!/bin/sh

logger -t $(basename $0) "Changing motd"

mv /tmp/etc/motd /tmp/etc/motd.old

cat >/tmp/etc/motd <<EOF

Blah blah blah
Message of the day
Blah Blah
EOF

exit
 
Last edited:
Similar threads

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top