From 71746cc0d9aabe80813a7d64dce075a96d9c6185 Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Tue, 18 Feb 2014 10:43:31 +0100 Subject: rt-set-bandwidth: fix restoration of original value during stop Signed-off-by: Marc Kleine-Budde --- generic/etc/init.d/rt-set-bandwidth | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'generic') diff --git a/generic/etc/init.d/rt-set-bandwidth b/generic/etc/init.d/rt-set-bandwidth index caad616a6..4c0f7a503 100644 --- a/generic/etc/init.d/rt-set-bandwidth +++ b/generic/etc/init.d/rt-set-bandwidth @@ -22,7 +22,7 @@ case $1 in ;; stop) if [ -f "${runtime_orig}" ]; then - cp "${runtime_orig}" "${runtime}" + cat "${runtime_orig}" > "${runtime}" else echo "WARNING: Restoring RT-bandwidth was requested, but original value was not found!" fi -- cgit v1.2.3