View Single Post
Old 05-08-2013, 11:03 AM   #12
KevinShort
Addict
KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.
 
KevinShort's Avatar
 
Posts: 348
Karma: 209937
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
I found the problem. The poweroff file is really just a link to "../bin/busybox", so when you move it to /usr/local, the link is broken. So what you can do is just remove /sbin/poweroff and create a new file with the same name, but instead of calling /usr/local/poweroff at the end, do this:
Code:
#!/bin/sh
#do whatever you want before shutdown
/bin/busybox poweroff
KevinShort is offline   Reply With Quote