fix __file usage in __issue and add redhat support

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-03-16 11:16:45 +01:00
parent b11941bdaf
commit f94b39c22b
2 changed files with 6 additions and 3 deletions

View file

@ -0,0 +1,3 @@
Red Hat Enterprise Linux Server (cdist-automated)
Kernel \r on an \m

View file

@ -23,12 +23,12 @@ destination=/etc/issue
source="$(cat "out/explorer/os")"
case "$os" in
archlinux)
source="$__type/files/archlinux"
archlinux|redhat)
source="$__type/files/$os"
;;
*)
source="$__type/files/default"
;;
esac
__file "$destination" --source "$source" --type file
__file "$destination" --source "$source"