mirror of
https://github.com/troglobit/finit.git
synced 2026-10-30 12:50:34 +00:00
Default user for finit-alt configurable from Makefile
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
1 parent
98624a3d21
commit
2a9bfa7fd7
3 files changed
+13
-4
No files matched your search
@@ -1,5 +1,6 @@
|
|||||||
O.4 ()
|
O.4 ()
|
||||||
- create /dev/initctl fifo in finit-alt (for reboot)
|
- create /dev/initctl fifo in finit-alt (for reboot)
|
||||||
|
- default username for finit-alt configurable in Makefile
|
||||||
|
|
||||||
0.3 (20080223)
|
0.3 (20080223)
|
||||||
- Change poweroff method to reboot(RB_POWER_OFF) (Metalshark)
|
- Change poweroff method to reboot(RB_POWER_OFF) (Metalshark)
|
||||||
|
|||||||
@@ -9,8 +9,12 @@ DFILES = Makefile README finit.c finit-mod.c finit-alt.c helpers.c helpers.h
|
|||||||
BINS = finit finit-mod finit-mdv
|
BINS = finit finit-mod finit-mdv
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#### Configurable parameters
|
#### Configurable parameters
|
||||||
|
|
||||||
|
# Default user for finit-alt if not "user"
|
||||||
|
#USER=fred
|
||||||
|
|
||||||
# Add -DDEBUG to build with debug messages, also drops to terminal after X
|
# Add -DDEBUG to build with debug messages, also drops to terminal after X
|
||||||
#CFLAGS += -DDEBUG
|
#CFLAGS += -DDEBUG
|
||||||
|
|
||||||
@@ -20,6 +24,7 @@ BINS = finit finit-mod finit-mdv
|
|||||||
CFLAGS += -march=pentium-m
|
CFLAGS += -march=pentium-m
|
||||||
|
|
||||||
# Omit the first /sbin/hwclock if CONFIG_RTC_HCTOSYS is enabled in the kernel
|
# Omit the first /sbin/hwclock if CONFIG_RTC_HCTOSYS is enabled in the kernel
|
||||||
|
|
||||||
#CFLAGS += -DNO_HCTOSYS
|
#CFLAGS += -DNO_HCTOSYS
|
||||||
|
|
||||||
# Append –directisa to /sbin/hwclock lines if the user has disabled
|
# Append –directisa to /sbin/hwclock lines if the user has disabled
|
||||||
@@ -27,6 +32,9 @@ CFLAGS += -march=pentium-m
|
|||||||
# and CONFIG_HPET_RTC_IRQ.
|
# and CONFIG_HPET_RTC_IRQ.
|
||||||
#CFLAGS += -DDIRECTISA
|
#CFLAGS += -DDIRECTISA
|
||||||
|
|
||||||
|
ifneq ($(USER), "user")
|
||||||
|
CFLAGS += -DDEFUSER=\"$(USER)\"
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
|
|||||||
+4
-4
@@ -48,6 +48,10 @@ THE SOFTWARE.
|
|||||||
#define debug(x...)
|
#define debug(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef DEFUSER
|
||||||
|
#define DEFUSER "user"
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Distribution configuration */
|
/* Distribution configuration */
|
||||||
|
|
||||||
#ifdef DIST_MDV /* Mandriva */
|
#ifdef DIST_MDV /* Mandriva */
|
||||||
@@ -55,9 +59,6 @@ THE SOFTWARE.
|
|||||||
#define SYSROOT "/sysroot"
|
#define SYSROOT "/sysroot"
|
||||||
#define GETTY "/sbin/mingetty tty3"
|
#define GETTY "/sbin/mingetty tty3"
|
||||||
#define RUNPARTS "/usr/bin/run-parts --arg=-i"
|
#define RUNPARTS "/usr/bin/run-parts --arg=-i"
|
||||||
#define DEFUSER "user"
|
|
||||||
#define HOMEDEV "/dev/sda6"
|
|
||||||
#define AGPDRV "intel-agp"
|
|
||||||
#define REMOUNT_ROOTFS_RW
|
#define REMOUNT_ROOTFS_RW
|
||||||
#define MAKE_DEVICES
|
#define MAKE_DEVICES
|
||||||
#else /* original Eeepc distribution */
|
#else /* original Eeepc distribution */
|
||||||
@@ -65,7 +66,6 @@ THE SOFTWARE.
|
|||||||
#define SYSROOT "/mnt"
|
#define SYSROOT "/mnt"
|
||||||
#define GETTY "/sbin/getty 38400 tty3"
|
#define GETTY "/sbin/getty 38400 tty3"
|
||||||
#define RUNPARTS "/bin/run-parts --arg=-i"
|
#define RUNPARTS "/bin/run-parts --arg=-i"
|
||||||
#define DEFUSER "user"
|
|
||||||
#define TOUCH_ETC_NETWORK_RUN_IFSTATE
|
#define TOUCH_ETC_NETWORK_RUN_IFSTATE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user