diff --git a/etc/init.d/tc-functions b/etc/init.d/tc-functions index dddce2b..9c4a446 100755 --- a/etc/init.d/tc-functions +++ b/etc/init.d/tc-functions @@ -283,7 +283,7 @@ echo ${verid#*=} getMajorVer() { fullver=$(getFullVer) -echo ${fullver%.*} +echo $fullver | grep -Eo '^[0-9]+' } getBuild() {