]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Use bash as shebang in network initscripts
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Tue, 29 Aug 2023 08:52:38 +0000 (10:52 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 5 Sep 2023 15:15:53 +0000 (15:15 +0000)
/bin/sh is a symlink to /bin/bash on ipfire systems. Using /bin/sh in
the scripts as shebang hurts in two ways:

1. We use features which do not work with sh as shell. This is not
   really a problem but if we rely on features of a real bash we can
   state this clearly.
2. The syntay highlighting in vim does not work without a correct
   shebang. As I want and need correct syntax highlighting I propose to
   change the shebang.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/networking/any
src/initscripts/networking/functions.network
src/initscripts/networking/red
src/initscripts/networking/red.up/99-pakfire-update
src/initscripts/system/network

index 15197badb76664acd95511c0b479194b2e67aa28..dc4796e914536dae03b70390e9447b3bb2bf127b 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
index 0e2e5009e8dc88357b9044f38a6ba3b96f7d018b..4c7ad51d470023ca60272696c05b15f6f4f99d1b 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
index 75a17bd5a3df7d042f4affb8f5d4eab34be36d71..9da3ea406d71423df4df289497051717f9790e49 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
index 3cc79a107bd771899496b28360be7dc0e6991766..56cee66aa57477bc362d72fa0bb98192f7d8a599 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 nice -n 10 /opt/pakfire/pakfire update >/dev/null 2>&1 &
 
index 9ef3fb0d8fa1eefa3600e5f32be0342f43908650..16609175ad1074f5334e86258c3f4fa4b2f01931 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #