Skip to content

Commit

Permalink
librecomputer: overlay: debugfs
Browse files Browse the repository at this point in the history
  • Loading branch information
Da Xue authored and lc-engineering-bot committed Oct 4, 2023
1 parent 6d89dec commit 3c97207
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions board/librecomputer/overlay/debugfs/etc/init.d/S21debugfs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/sh
#
# debugfs Mount debugfs
#

start() {
mount -t debugfs none /sys/kernel/debug
}
stop() {
umount /sys/kernel/debug
}
restart() {
stop
start
}

case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
restart
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac

exit $?

0 comments on commit 3c97207

Please sign in to comment.