]> git.ipfire.org Git - ipfire-2.x.git/commit
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)
commit8ae238a588fa8921de29f2fb6d809747fcb3c472
tree5a9314c75cbb89de0d3656247061c560885a7983
parentb007476d2e3b4de26f3b47601acd399621b28e66
Use bash as shebang in network initscripts

/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