#1042 PR merged
: Update 50_guess_bootloader.sh¶
Labels: enhancement
, bug
, fixed / solved / done
jsmeix opened issue at 2016-10-20 12:20:¶
Added 'tail -n1' to get only the last value if there are more than one
and because getting values from sysconfig files is like sourcing
a shell script it is the last setting that matters, see
https://github.com/rear/rear/commit/c291991ace856a56843c6e45cb121af06829f82c#commitcomment-19500870
and
https://github.com/rear/rear/issues/1038
Cf.
http://stackoverflow.com/questions/2871930/how-to-retrieve-value-from-etc-sysconfig-in-python
that reads (excerpt):
source /etc/sysconfig/FOO
echo $MY_VALUE
and
http://ftp.novell.hu/pub/mirrors/ftp.novell.com/forge/library/SUSE%20Package%20Conventions/spc_sysconfig.html
that reads (excerpts):
The configuration is easily readable by shell scripts
The sysconfig files are plain text files.
The setting is defined by pairs {VARIABLE,value} the following way,
like shell variables:
VARIABLE=”value”
[Export of Github issue for rear/rear.]