mirror of
https://github.com/troglobit/finit.git
synced 2026-11-13 17:00:16 +00:00
Change poweroff method to reboot(RB_POWER_OFF) (Metalshark)
Metalshark says: February 19th, 2008 at 9:10 pm There is an issue with some ACPI/Kernel combinations to do with shutdown. It isn’t always powering off (tried /proc/acpi and /sys methods) - however removing all the fd > 5 stuff and putting in the simple line “reboot(RB_POWER_OFF);” worked for all thus far. Although semantically incorrect it is a working solution. Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
1 parent
7137573534
commit
fb8c341168
3 files changed
+7
-14
No files matched your search
@@ -6,6 +6,7 @@ LIBS =
|
||||
VERSION = 0.3-pre
|
||||
PKG = finit-$(VERSION)
|
||||
DFILES = Makefile README finit.c finit-mod.c finit-alt.c helpers.c helpers.h
|
||||
BINS = finit finit-mod finit-mdv
|
||||
|
||||
|
||||
#### Configurable parameters
|
||||
@@ -31,7 +32,7 @@ CFLAGS += -march=pentium-m
|
||||
.c.o:
|
||||
$(CC) -c $(CFLAGS) -o $*.o $<
|
||||
|
||||
all: finit finit-mod finit-mdv
|
||||
all: $(BINS)
|
||||
|
||||
finit: finit.o
|
||||
$(LD) $(LDFLAGS) -o $@ $+ $(LIBS)
|
||||
@@ -49,7 +50,7 @@ finit-mdv.o: finit-alt.c Makefile
|
||||
$(CC) -c $(CFLAGS) -DDIST_MDV -o $@ finit-alt.c
|
||||
|
||||
clean:
|
||||
rm -f *.o core *~
|
||||
rm -f *.o core *~ $(BINS)
|
||||
|
||||
finit.o: finit.c Makefile
|
||||
|
||||
|
||||
Reference in new issue
Block a user