X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=chboot;h=925becc55a95ffc3ddc2f3f1816643ef3474e50c;hb=1a5548031efc4a1fa88ca94237eac3033cf97ef1;hp=609b41dc758b1f49dd51736d58d570a6ef5a2104;hpb=896f57cc86a9babea7bdb2bf39d95ba2c77beca6;p=automated-distro-installer diff --git a/chboot b/chboot index 609b41d..925becc 100755 --- a/chboot +++ b/chboot @@ -1,4 +1,19 @@ #!/bin/bash +# Copyright (C) 2016 Ian Kelling + +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Set grub to boot into a different distro, and reboot unless -r # $0 [DISTRO_NAME] @@ -63,6 +78,6 @@ e umount $mount_point e rmdir $mount_point if $reboot; then - systemctl stop keyscriptoff.service + touch /tmp/keyscript-off reboot now fi