Remove the manual start of network interfaces
If glean is run at a runlevel before default then adding interfaces to the default runlevel will be properly calculated at the default runlevel's start. This means we can get rid of the manual start glean was doing (and causing a 1 min delay every boot). Change-Id: I0844a961e719972c5d66e1cc8d36a56d25d6a175
This commit is contained in:
parent
43909aec20
commit
f700d4bcda
|
@ -10,6 +10,6 @@ start() {
|
|||
}
|
||||
|
||||
depend() {
|
||||
need root
|
||||
need root localmount
|
||||
before net
|
||||
}
|
||||
|
|
|
@ -65,8 +65,3 @@ if [ -n "$INTERFACE" ]; then
|
|||
else
|
||||
glean
|
||||
fi
|
||||
|
||||
# gentoo needs manual interface start as it doesn't have ifup and the like
|
||||
if [[ -a /etc/gentoo-release ]]; then
|
||||
find /etc/init.d/net.* ! -name net.lo -exec {} start \;
|
||||
fi
|
||||
|
|
|
@ -95,7 +95,7 @@ def main():
|
|||
if os.path.exists('/etc/gentoo-release'):
|
||||
log.info('installing openrc services')
|
||||
install('glean.openrc', '/etc/init.d/glean')
|
||||
subprocess.call(['rc-update', 'add', 'glean', 'default'])
|
||||
subprocess.call(['rc-update', 'add', 'glean', 'boot'])
|
||||
if os.path.exists('/usr/lib/systemd'):
|
||||
p = _find_gleansh_path()
|
||||
|
||||
|
|
Loading…
Reference in New Issue