diff --git a/initrd_hooks/lipnsa.sh b/initrd_hooks/lipnsa.hook.sh similarity index 98% rename from initrd_hooks/lipnsa.sh rename to initrd_hooks/lipnsa.hook.sh index 73a54d854eeae6e0f9e0141d458b035eb3813ba4..94be07c01fc8fe163f36e4485713a8395a36e759 100755 --- a/initrd_hooks/lipnsa.sh +++ b/initrd_hooks/lipnsa.hook.sh @@ -2,12 +2,16 @@ # lipnsa.sh -- collecting your data for a better world # Lars Beckers, larsb@fsmpi.rwth-aachen.de, September 2014 -LIPSTICK="/cdrom" +LIPSTICK="/root/cdrom" +if [ -n "$1" ] && [ ! "$1" == "--help" ]; then + LIPSTICK="$1" +fi + LIPSTATS="${LIPSTICK}/lipstats" TARGET="/root" LOGFUNCTIONSSOURCE="/scripts/casper-functions" -if [ $# -gt 0 ]; then +if [ "$1" == "--help" ]; then echo "collects system information, i.e. hardware and what the kernel thinks about it" echo "called as liphook before leaving initramfs" echo "usage: lipnsa.sh"