testing
This commit is contained in:
@@ -24,11 +24,9 @@ if [[ ! -f /etc/sudoers.d/akanealw ]]
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# edit issue file
|
# edit issue file
|
||||||
isInFile=$(cat /etc/issue | grep -c "eth0")
|
isInFile=$(cat /etc/issue | grep -c "192.168.1")
|
||||||
if [ $isInFile -eq 0 ]
|
if [ $isInFile -eq 0 ]
|
||||||
then
|
then
|
||||||
echo "Welcome to Alpine Linux 3.18" > /etc/issue
|
|
||||||
echo "Kernel \r on an \m (\l)" >> /etc/issue
|
|
||||||
echo "" >> /etc/issue
|
echo "" >> /etc/issue
|
||||||
ip address show eth0 | awk '/inet / {print $2}' | cut -d/ -f1 >> /etc/issue
|
ip address show eth0 | awk '/inet / {print $2}' | cut -d/ -f1 >> /etc/issue
|
||||||
echo "" >> /etc/issue
|
echo "" >> /etc/issue
|
||||||
|
|||||||
Reference in New Issue
Block a user