saving uncommitted changes in /etc prior to emerge run

This commit is contained in:
2015-02-27 01:58:55 +01:00
committed by root
commit b3cea8d893
2385 changed files with 507432 additions and 0 deletions

37
init.d/net.profile Executable file
View File

@@ -0,0 +1,37 @@
#!/sbin/runscript
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# This startup script uses hprofile to select the last known good network profile.
depend() {
use hotplug pcmcia
}
start() {
# Use the previous profile; when the "stop" function below is run, the
# "current" profile is stopped and becomes the "previous" profile.
# Before we start it all again, run hprofile -p to find out what that
# was. That way, if we were using profile "home" last time, assume we
# want to keep using it.
# Also note - if profile is empty, which will happen if there is no
# "previous" profile, hprofile will fall back on the default profile
profile=$(/usr/sbin/hprofile -p net)
ebegin "Selecting network profile ${profile}"
/usr/sbin/hprofile "net.${profile}"
eend $?
}
# Do not stop the network profile - we want it to remain so that the next time we
# boot, the previous network profile is still reported as the "current" one.
stop() {
ebegin "Stopping network profile"
/usr/sbin/hprofile -s net
eend $?
}
# vim:ts=4