X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=filesystem%2Fusr%2Flocal%2Fbin%2Fbitcoinoff;h=3e1c0fd760ce83bc97cec77ae4871a4ceafdaa8a;hb=6d1ec26482f86b0f2d9560ce3d04ea8c63297c25;hp=d9528735bd9d16eabd98d991b6516699af3f7179;hpb=d6def754cd241538c61456536b52ee51cbd85b42;p=distro-setup diff --git a/filesystem/usr/local/bin/bitcoinoff b/filesystem/usr/local/bin/bitcoinoff index d952873..3e1c0fd 100755 --- a/filesystem/usr/local/bin/bitcoinoff +++ b/filesystem/usr/local/bin/bitcoinoff @@ -1,4 +1,28 @@ #!/bin/bash +# I, Ian Kelling, follow the GNU license recommendations at +# https://www.gnu.org/licenses/license-recommendations.en.html. They +# recommend that small programs, < 300 lines, be licensed under the +# Apache License 2.0. This file contains or is part of one or more small +# programs. If a small program grows beyond 300 lines, I plan to switch +# its license to GPL. + +# Copyright 2024 Ian Kelling + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at + +# http://www.apache.org/licenses/LICENSE-2.0 + +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [[ $EUID == 0 ]] || exec sudo "${BASH_SOURCE[0]}" +if [[ -e /tmp/no-bitcoinoff ]]; then + exit 0 +fi systemctl stop bitcoind