diff options
author | Richard Farina <zerochaos@gentoo.org> | 2013-07-05 16:53:22 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2013-07-05 16:54:41 -0500 |
commit | 793efb2eef4ea146b6e0db90f11e03fd193246be (patch) | |
tree | c991e69df7c82fa1a642d03ae2bbed8b42c05913 | |
parent | autoconfig: update network device name recognission (diff) | |
download | livecd-tools-793efb2eef4ea146b6e0db90f11e03fd193246be.tar.gz livecd-tools-793efb2eef4ea146b6e0db90f11e03fd193246be.tar.bz2 livecd-tools-793efb2eef4ea146b6e0db90f11e03fd193246be.zip |
fixinittab: Do not overwrite an existing backup
-rwxr-xr-x | init.d/fixinittab | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/init.d/fixinittab b/init.d/fixinittab index c485637..56bfbcc 100755 --- a/init.d/fixinittab +++ b/init.d/fixinittab @@ -14,7 +14,10 @@ start() ebegin "Adjusting inittab" # Create a backup - cp -f /etc/inittab /etc/inittab.old + if [ ! -e /etc/inittab.old ] + then + cp -f /etc/inittab /etc/inittab.old + fi # Comment out current getty settings sed -i -e '/^c[0-9]/ s/^/#/' /etc/inittab |