- Keep the condition posix as it is shorter :)
OBS-URL: https://build.opensuse.org/package/show/Base:System/netcfg?expand=0&rev=36
This commit is contained in:
parent
96b58768da
commit
c1a844d087
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 17 10:19:29 UTC 2014 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Keep the condition posix as it is shorter :)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Dec 1 16:56:09 UTC 2014 - tchvatal@suse.com
|
Mon Dec 1 16:56:09 UTC 2014 - tchvatal@suse.com
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ ln -s %{_sysconfdir}/hostname %{buildroot}%{_sysconfdir}/HOSTNAME
|
|||||||
# If hostname and HOSTNAME both exist HOSTNAME wins.
|
# If hostname and HOSTNAME both exist HOSTNAME wins.
|
||||||
# Nothing apart from content of the document is preserved
|
# Nothing apart from content of the document is preserved
|
||||||
# REMOVE after SLE11/openSUSE-13.1 out of MIGRATION support
|
# REMOVE after SLE11/openSUSE-13.1 out of MIGRATION support
|
||||||
if [ "0$1" -ge "2" ]; then
|
if [ $1 -gt 1 ]; then
|
||||||
if [ -f %{_sysconfdir}/HOSTNAME -a ! -L %{_sysconfdir}/HOSTNAME ]; then
|
if [ -f %{_sysconfdir}/HOSTNAME -a ! -L %{_sysconfdir}/HOSTNAME ]; then
|
||||||
cp %{_sysconfdir}/HOSTNAME %{_sysconfdir}/hostname.rpmsave
|
cp %{_sysconfdir}/HOSTNAME %{_sysconfdir}/hostname.rpmsave
|
||||||
rm %{_sysconfdir}/HOSTNAME
|
rm %{_sysconfdir}/HOSTNAME
|
||||||
|
Loading…
Reference in New Issue
Block a user