Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Automatically run program on Linux startup via rc.local

#!/bin/bash

/sbin/ip addr | grep inet | tail -n1 | awk '{ print $2 }' > /etc/issue
echo "" >> /etc/issue

exit 0
Source by www.simplified.guide #
 
PREVIOUS NEXT
Tagged: #Automatically #run #program #Linux #startup
ADD COMMENT
Topic
Name
9+8 =