TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Shutdown PC by removing SD Card

2 pointsby TMKover 13 years ago

1 comment

asharpover 13 years ago
Interesting, but why don't you use a udev rule?<p>Something like KERNEL=="sdg", RUN+="/usr/bin/madagascar" and then you have madagascar check the environment variable ACTION for a 'remove', and when you see that run shutdown? (or just write straight into sysreq for instant poweroff)
评论 #3255225 未加载