~ubuntu-core-dev/ubuntu/hirsute/apport/ubuntu

1
2
3
4
5
6
7
#!/bin/sh -e
# This changes the kernel's core_pattern pipeline to use the local tree's
# apport program instead of the system version. This is useful if you are
# making changes to bin/apport and want to test them without copying them to
# /usr/share/apport/ every time.

echo "|$(readlink -f $(dirname $0)/data/apport) -p%p -s%s -c%c -d%d -P%P" | tee /proc/sys/kernel/core_pattern