diff options
author | Aaditya Bagga <aaditya_gnulinux@zoho.com> | 2015-06-05 19:21:53 +0530 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-06-07 21:37:28 +0700 |
commit | d9cecaaad8b25f64bf7d63a1cb10a7c64cd35d4b (patch) | |
tree | b3fecdc2e26cbd3f384e4b11e7ae94cf0a6ea79d /system/openrc/doinst.sh | |
parent | 8e8d0ec629d7a531450713e13e17e327db4190eb (diff) |
system/openrc: Updated for version 0.16.4.
Diffstat (limited to 'system/openrc/doinst.sh')
-rw-r--r-- | system/openrc/doinst.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/system/openrc/doinst.sh b/system/openrc/doinst.sh index b2fca4b27e38e..8c17991f8e7ea 100644 --- a/system/openrc/doinst.sh +++ b/system/openrc/doinst.sh @@ -12,13 +12,13 @@ config() { # Otherwise, we leave the .new copy for the admin to consider... } -BACKUP=(etc/inittab - etc/rc.conf - etc/conf.d/{bootmisc,consolefont,devfs,dmesg,fsck,hostname,hwclock,keymaps} - etc/conf.d/{killprocs,localmount,modules,netmount,network,staticroute} - etc/conf.d/{tmpfiles,urandom} - etc/logrotate.d/openrc) -for file in "${BACKUP[@]}"; do - config ${file}.new +BACKUP_FILE=(inittab rc.conf logrotate.d/openrc) +BACKUP_CONF=(bootmisc consolefont devfs dmesg fsck hostname hwclock keymaps killprocs localmount modules netmount network staticroute tmpfiles urandom) + +for file in "${BACKUP_FILE[@]}"; do + config "etc/${file}.new" done +for file in "${BACKUP_CONF[@]}"; do + config "etc/conf.d/${file}.new" +done |