Skip to content

Commit

Permalink
rc: switch crash dump back to default
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Jul 11, 2017
1 parent 951ea35 commit 286bbf6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/etc/rc.crashdump
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#!/bin/sh

sed -e 's/kdb.enter.panic=/kdb.enter.default=/' \
/etc/ddb.conf > /tmp/ddb.conf

echo -n "Configuring crash dump device: "

while read DEV MP TYPE MORE; do
[ "${TYPE}" = "swap" ] || continue
[ -c "${DEV}" ] || continue
if dumpon ${DEV}; then
echo ${DEV}
ddb /etc/ddb.conf
ddb /tmp/ddb.conf
if savecore -C ${DEV} > /dev/null; then
savecore /var/crash ${DEV}
fi
Expand All @@ -16,4 +19,4 @@ while read DEV MP TYPE MORE; do
done < /etc/fstab

echo "/dev/null"
ddb /etc/ddb.conf
ddb /tmp/ddb.conf

0 comments on commit 286bbf6

Please sign in to comment.