File network-autoconfig.spec of Package network-autoconfig

# spec file for package network-autoconfig
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           network-autoconfig
Version:        1.0
Release:        0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Requires:       wicked
Requires(pre):  %insserv_prereq
Summary:        Find a connected eth interface and create an ifcfg for it
License:        MIT
Group:          System/Boot

Source0:        README
Source1:        network-autoconfig

All available Ethernet network interfaces will be cycled
until one is successfully configured.
This script should run at the first boot of a machine
that has several interfaces.

%setup -c -T
cp %{SOURCE0} .


# install it to a directory where autoyast will run it once
install %{SOURCE1} $SBINDIR
install %{SOURCE2} $INITDIR

rm -rf "$RPM_BUILD_ROOT"



openSUSE Build Service is sponsored by