Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Parsing the kernel command line
- ARG_NAME=tp_desc
- CMDLINE=$(cat /proc/cmdline)
- DESCRIPTION="description not found"
- for x in $CMDLINE; do
- [[ $x = ${ARG_NAME}=* ]] || continue
- DESCRIPTION=${x#$ARG_NAME=}
- done
- # To write a message in "journalctl -k -b"
- #echo "generator test message" > /dev/kmsg
- mkdir $2/tp_debug.service.d/
- cat <<END_MARK >$2/tp_debug.service.d/override.conf
- [Unit]
- Description=$DESCRIPTION
- END_MARK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement