diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-11-07 22:29:21 +0100 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-11-13 12:50:57 +0100 |
commit | 4b81c1fd570c61ca7bafa5baf750e7364bd8117f (patch) | |
tree | f886ff5e490c4868da4e66e2c2f4dc620e45e02b /package/base-files/files | |
parent | dfd8c45a98f82c69cad7a622016aa70210b025c5 (diff) | |
download | upstream-4b81c1fd570c61ca7bafa5baf750e7364bd8117f.tar.gz upstream-4b81c1fd570c61ca7bafa5baf750e7364bd8117f.tar.bz2 upstream-4b81c1fd570c61ca7bafa5baf750e7364bd8117f.zip |
base-files: remove shebang from uci-defaults files
uci-defaults are sourced and non-executable, so they do not require
a shebang.
While at it, apply consistent naming scheme.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'package/base-files/files')
-rw-r--r-- | package/base-files/files/etc/uci-defaults/10_migrate-shadow | 2 | ||||
-rw-r--r-- | package/base-files/files/etc/uci-defaults/12_network-generate-ula | 2 | ||||
-rw-r--r-- | package/base-files/files/etc/uci-defaults/13_fix-group-user (renamed from package/base-files/files/etc/uci-defaults/13_fix_group_user) | 2 |
3 files changed, 0 insertions, 6 deletions
diff --git a/package/base-files/files/etc/uci-defaults/10_migrate-shadow b/package/base-files/files/etc/uci-defaults/10_migrate-shadow index a354844fe4..481444f35e 100644 --- a/package/base-files/files/etc/uci-defaults/10_migrate-shadow +++ b/package/base-files/files/etc/uci-defaults/10_migrate-shadow @@ -1,5 +1,3 @@ -#!/bin/sh - ppwd="$(sed -ne '/^root:/s/^root:\([^:]*\):.*$/\1/p' /etc/passwd)" spwd="$(sed -ne '/^root:/s/^root:\([^:]*\):.*$/\1/p' /etc/shadow)" diff --git a/package/base-files/files/etc/uci-defaults/12_network-generate-ula b/package/base-files/files/etc/uci-defaults/12_network-generate-ula index 8871427c60..19d7ed7f2e 100644 --- a/package/base-files/files/etc/uci-defaults/12_network-generate-ula +++ b/package/base-files/files/etc/uci-defaults/12_network-generate-ula @@ -1,5 +1,3 @@ -#!/bin/sh - [ "$(uci -q get network.globals.ula_prefix)" != "auto" ] && exit 0 r1=$(dd if=/dev/urandom bs=1 count=1 |hexdump -e '1/1 "%02x"') diff --git a/package/base-files/files/etc/uci-defaults/13_fix_group_user b/package/base-files/files/etc/uci-defaults/13_fix-group-user index e6dae2419f..bf9febdfe4 100644 --- a/package/base-files/files/etc/uci-defaults/13_fix_group_user +++ b/package/base-files/files/etc/uci-defaults/13_fix-group-user @@ -1,5 +1,3 @@ -#!/bin/sh - . /lib/functions.sh for file in `grep -sl Require-User /usr/lib/opkg/info/*.control`; do |