diff options
author | Max Rees <maxcrees@me.com> | 2019-07-22 20:15:07 -0400 |
---|---|---|
committer | Max Rees <maxcrees@me.com> | 2019-07-22 20:15:07 -0400 |
commit | 2707df6cc761dcc2341faa8bafec5b4b4fa33e4d (patch) | |
tree | 9df7c2d2fd84f153634581ff4fb249b98bf34ffa /user/alsa-utils/alsa.initd | |
parent | b7ffaa4d55e1faf4de0f8e6a2edf372fedfeaf71 (diff) | |
download | packages-2707df6cc761dcc2341faa8bafec5b4b4fa33e4d.tar.gz packages-2707df6cc761dcc2341faa8bafec5b4b4fa33e4d.tar.bz2 packages-2707df6cc761dcc2341faa8bafec5b4b4fa33e4d.tar.xz packages-2707df6cc761dcc2341faa8bafec5b4b4fa33e4d.zip |
system/*, user/*: remove bashisms from initd scripts
Diffstat (limited to 'user/alsa-utils/alsa.initd')
-rw-r--r-- | user/alsa-utils/alsa.initd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/user/alsa-utils/alsa.initd b/user/alsa-utils/alsa.initd index e0a1215cf..1266b6624 100644 --- a/user/alsa-utils/alsa.initd +++ b/user/alsa-utils/alsa.initd @@ -39,7 +39,7 @@ restore() { for ossfile in "${alsastatedir}"/oss/card*_pcm* ; do [ -e "${ossfile}" ] || continue # We use cat because I'm not sure if cp works properly on /proc - local procfile=${ossfile##${alsastatedir}/oss} + local procfile="${ossfile##${alsastatedir}/oss}" procfile="$(echo "${procfile}" | sed -e 's,_,/,g')" if [ -e /proc/asound/"${procfile}"/oss ] ; then cat "${ossfile}" > /proc/asound/"${procfile}"/oss @@ -63,7 +63,7 @@ save() { for ossfile in /proc/asound/card*/pcm*/oss; do [ -e "${ossfile}" ] || continue - local device=${ossfile##/proc/asound/} ; device=${device%%/oss} + local device="${ossfile##/proc/asound/}" ; device="${device%%/oss}" device="$(echo "${device}" | sed -e 's,/,_,g')" mkdir -p "${alsastatedir}/oss/" cp "${ossfile}" "${alsastatedir}/oss/${device}" |