mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
get_os.sh: Add file
This commit is contained in:
parent
5700573a46
commit
a82820d394
1 changed files with 38 additions and 0 deletions
38
scripts/get_os.sh
Normal file
38
scripts/get_os.sh
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
#!/bin/sh
|
||||||
|
########################################################################
|
||||||
|
# #
|
||||||
|
# generic utiltiy modules #
|
||||||
|
# (c) 2001 jannet it services #
|
||||||
|
# contact@jannet.de #
|
||||||
|
# #
|
||||||
|
# $Id$
|
||||||
|
# #
|
||||||
|
# This program is free software; permission to use, copy, modify, #
|
||||||
|
# distribute, and sell this software and its documentation under the #
|
||||||
|
# terms of the GNU Public license as published by the Free Software #
|
||||||
|
# Foundation, either version 2 or any later version of the license, is #
|
||||||
|
# hereby granted without fee, provided that (i) the above copyright #
|
||||||
|
# notices and this permission notice appear in all copies of the #
|
||||||
|
# software and related documentation, and (ii) the name of JanNet may #
|
||||||
|
# not be used in any advertising or publicity relating to the software #
|
||||||
|
# without the specific, prior written permission of JanNet. #
|
||||||
|
# #
|
||||||
|
# This program is distributed in the hope that it will be useful, but #
|
||||||
|
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- #
|
||||||
|
# TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General #
|
||||||
|
# Public License for more details. #
|
||||||
|
# #
|
||||||
|
# You should have received a copy of the GNU General Public License #
|
||||||
|
# along with this program; if not, write to the Free Software Founda- #
|
||||||
|
# tion, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. #
|
||||||
|
# #
|
||||||
|
########################################################################
|
||||||
|
|
||||||
|
|
||||||
|
if [ -f /etc/SuSE-release ]; then
|
||||||
|
VERSION="`grep VERSION /etc/SuSE-release | sed -e 's/.*=//; s/ //g'`"
|
||||||
|
echo suse-$VERSION
|
||||||
|
else
|
||||||
|
uname -r
|
||||||
|
fi
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue