File: crashkernel.sh

package info (click to toggle)
cockpit 337-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 36,232 kB
  • sloc: javascript: 47,090; python: 38,766; ansic: 35,470; xml: 6,048; sh: 3,413; makefile: 614
file content (9 lines) | stat: -rw-r--r-- 118 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
#!/bin/sh
set -eu

# sync disks
sync

# crash the kernel
echo 1 > /proc/sys/kernel/sysrq
echo c > /proc/sysrq-trigger