Set bash shebang on scripts

Any shell scripts that have been modified for Unraid should have the correct `#!/bin/bash` shebang to aid with linting.
This commit is contained in:
ljm42
2023-09-08 11:17:53 -07:00
parent 44817e1049
commit c9c2a0a8be
17 changed files with 29 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# Intialize libvirt config storage # Intialize libvirt config storage
# Invoked by emhttp after mounting libvirt loopback but before starting libvirt. # Invoked by emhttp after mounting libvirt loopback but before starting libvirt.

View File

@@ -1,8 +1,10 @@
#!/bin/sh #!/bin/bash
# /etc/rc.d/rc.inet1 # /etc/rc.d/rc.inet1
# This script is used to bring up the various network interfaces. # This script is used to bring up the various network interfaces.
# #
# @(#)/etc/rc.d/rc.inet1 10.2 Sun Jul 24 12:45:56 PDT 2005 (pjv) # @(#)/etc/rc.d/rc.inet1 10.2 Sun Jul 24 12:45:56 PDT 2005 (pjv)
#
# LimeTech - Modified for Unraid OS
# Adapted by Bergware for use in unRAID - April 2016 # Adapted by Bergware for use in unRAID - April 2016
# - improved interface configuration # - improved interface configuration

View File

@@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# rc.inet2 This shell script boots up the entire network system. # rc.inet2 This shell script boots up the entire network system.
# Note, that when this script is used to also fire # Note, that when this script is used to also fire
@@ -11,7 +11,8 @@
# #
# Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org> # Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
# Modified for Slackware by Patrick Volkerding <volkerdi@slackware.com> # Modified for Slackware by Patrick Volkerding <volkerdi@slackware.com>
#
# LimeTech - Modified for Unraid OS
# At this point, we are (almost) ready to talk to The World... # At this point, we are (almost) ready to talk to The World...

View File

@@ -2,6 +2,7 @@
# Used by nfsd, ntpd, rpc, samba, nginx, sshd, avahidaemon, show_interfaces # Used by nfsd, ntpd, rpc, samba, nginx, sshd, avahidaemon, show_interfaces
# #
# bergware - updated for Unraid, June 2023 # bergware - updated for Unraid, June 2023
# shellcheck shell=bash
WIREGUARD="/etc/wireguard" WIREGUARD="/etc/wireguard"
NETWORK_INI="/var/local/emhttp/network.ini" NETWORK_INI="/var/local/emhttp/network.ini"

View File

@@ -1,7 +1,8 @@
#!/bin/sh #!/bin/bash
# #
# /etc/rc.d/rc.local_shutdown: Local system shutdown script. # /etc/rc.d/rc.local_shutdown: Local system shutdown script.
# #
# LimeTech - Modified for Unraid OS
# Beep the motherboard speaker # Beep the motherboard speaker
beep -r 2 beep -r 2

View File

@@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Startup script for mcelog # Startup script for mcelog
# #

View File

@@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# Start/stop/restart the NFS server. # Start/stop/restart the NFS server.
# #
# This is an init script for the knfsd NFS daemons. # This is an init script for the knfsd NFS daemons.
@@ -7,6 +7,8 @@
# #
# Written for Slackware Linux by Patrick J. Volkerding <volkerdi@slackware.com>. # Written for Slackware Linux by Patrick J. Volkerding <volkerdi@slackware.com>.
# #
# LimeTech - Modified for Unraid OS
#
# bergware - added interface bind functionality # bergware - added interface bind functionality
CALLER="nfs" CALLER="nfs"

View File

@@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# Start/stop/restart ntpd. # Start/stop/restart ntpd.
# limetech - modified to initialize ntp.conf file from config # limetech - modified to initialize ntp.conf file from config

View File

@@ -1,4 +1,6 @@
#!/bin/sh #!/bin/bash
#
# LimeTech - Modified for Unraid OS
### BEGIN INIT INFO ### BEGIN INIT INFO
# Provides: php-fpm # Provides: php-fpm

View File

@@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# rc.rpc: start/stop/restart RPC daemons needed to use NFS. # rc.rpc: start/stop/restart RPC daemons needed to use NFS.
# #
# You must run these daemons in order to mount NFS partitions # You must run these daemons in order to mount NFS partitions

View File

@@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# /etc/rc.d/rc.samba # /etc/rc.d/rc.samba
# #

View File

@@ -1,3 +1,4 @@
#!/bin/bash
# #
# /etc/rc.serial # /etc/rc.serial
# Initializes the serial ports on your system # Initializes the serial ports on your system
@@ -15,6 +16,7 @@
# using the multiport feature; it doesn't save the multiport configuration # using the multiport feature; it doesn't save the multiport configuration
# (for now). Autosave also doesn't work for the hayes devices. # (for now). Autosave also doesn't work for the hayes devices.
# #
# LimeTech - Modified for Unraid OS
RCLOCKFILE=/var/lock/subsys/serial RCLOCKFILE=/var/lock/subsys/serial
DIRS="/lib/modules/`uname -r`/misc /lib/modules /usr/lib/modules ." DIRS="/lib/modules/`uname -r`/misc /lib/modules /usr/lib/modules ."

View File

@@ -1,5 +1,7 @@
#!/bin/sh #!/bin/bash
# Start/stop/restart the secure shell server: # Start/stop/restart the secure shell server:
#
# LimeTech - Modified for Unraid OS
# bergware - added interface bind functionality # bergware - added interface bind functionality
CALLER="ssh" CALLER="ssh"

View File

@@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# This is a script to initialize udev, which populates the /dev # This is a script to initialize udev, which populates the /dev
# directory with device nodes, scans for devices, loads the # directory with device nodes, scans for devices, loads the
# appropriate kernel modules, and configures the devices. # appropriate kernel modules, and configures the devices.

View File

@@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# Copyright 2005-2023, Lime Technology # Copyright 2005-2023, Lime Technology
# Copyright 2012-2023, Bergware International. # Copyright 2012-2023, Bergware International.
# #

View File

@@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
#Copyright 2005-2021, Lime Technology #Copyright 2005-2021, Lime Technology
#License: GPLv2 only #License: GPLv2 only

View File

@@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# limetech - wrapper for Andre Ritchter's vfio-bind script: # limetech - wrapper for Andre Ritchter's vfio-bind script:
# https://github.com/andre-richter/vfio-pci-bind/blob/master/vfio-pci-bind.sh # https://github.com/andre-richter/vfio-pci-bind/blob/master/vfio-pci-bind.sh
# additional changes by ljm42 # additional changes by ljm42