1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-12 09:17:44 +03:00

rule_generator: fix for creating rules on read-only filesystem

This commit is contained in:
Matthias Schwarzott 2007-02-26 15:07:42 +01:00 committed by Kay Sievers
parent 58310f6698
commit 1f889fb84f

View File

@ -92,7 +92,6 @@ find_all_rules() {
local linkre="$2"
local match="$3"
[ -e $RULES_FILE ] || return
local search='.*[[:space:],]'"$key"'"\('"$linkre"'\)"[[:space:]]*\(,.*\|\\\|\)$'
echo $(sed -n -e "${match}s/${search}/\1/p" $RO_RULES_FILE $RULES_FILE)
}