Wouldwork? That's probably not the best way to do it, but it's a start. Here's anotherCode:#!/bin/bash # Define what we're looking for. string='backtrack' # Dump the first nine characters, from the /etc/issue file, into a test file. cat /etc/issue | cut -c 1-9 > test.txt # Test our test file, to see if our string exists. # If our string exists, do one thing. # If not, do something else. if grep -q -i $string test.txt; then echo "BackTrack detected." else echo "This is probably not a BackTrack system." fi # Delete our test file. rm test.txtCode:if [ `cat /etc/issue | cut -c 1-9` != "BackTrack" ];then echo "BackTrack not detected."; fi
P.S. Why not just submit a ticket to Redmine?