mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 22:13:01 +07:00
Remove STARTX from configurable parameters
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
@@ -38,7 +38,6 @@
|
||||
#define GETTY "/sbin/mingetty tty3"
|
||||
#define RUNPARTS "/usr/bin/run-parts --arg=-i"
|
||||
#define DEFUSER "u"
|
||||
#define STARTX "/usr/bin/startx"
|
||||
#define HOMEDEV "/dev/sda3"
|
||||
#define AGPDRV "intel-agp"
|
||||
#define SERVICES "/etc/rc"
|
||||
@@ -50,7 +49,6 @@
|
||||
#define GETTY "/sbin/getty 38400 tty3"
|
||||
#define RUNPARTS "/bin/run-parts --arg=-i"
|
||||
#define DEFUSER "user"
|
||||
#define STARTX "startx"
|
||||
#define SERVICES "/usr/sbin/services.sh"
|
||||
#define TOUCH_ETC_NETWORK_RUN_IFSTATE
|
||||
#endif
|
||||
@@ -301,12 +299,12 @@ int main()
|
||||
#endif
|
||||
|
||||
while (access("/tmp/shutdown", F_OK) < 0) {
|
||||
debug("run " STARTX " as " DEFUSER);
|
||||
debug("start X as " DEFUSER);
|
||||
#ifdef DEBUG
|
||||
system("su -c " STARTX " -l " DEFUSER);
|
||||
system("su -c startx -l " DEFUSER);
|
||||
system("/bin/sh");
|
||||
#else
|
||||
system("su -c " STARTX " -l " DEFUSER " &> /dev/null");
|
||||
system("su -c startx -l " DEFUSER " &> /dev/null");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user