mirror of
https://github.com/troglobit/finit.git
synced 2026-11-06 15:51:03 +00:00
Remove usplash and nologin from Asus legacy code
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
1 parent
a2de2c1591
commit
65c971925c
2 files changed
+2
-13
No files matched your search
@@ -20,7 +20,7 @@ BINS = finit-mod finit-alt finit-mdv #finit-exb
|
|||||||
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
|
||||||
# CONFIG_GENRTC and enabled CONFIG_RTC but not enabled CONFIG_HPET_TIMER
|
# CONFIG_GENRTC and enabled CONFIG_RTC but not enabled CONFIG_HPET_TIMER
|
||||||
|
|||||||
+1
-12
@@ -67,7 +67,6 @@ THE SOFTWARE.
|
|||||||
#define MAKE_DEVICES
|
#define MAKE_DEVICES
|
||||||
#define TOUCH_ETC_NETWORK_RUN_IFSTATE
|
#define TOUCH_ETC_NETWORK_RUN_IFSTATE
|
||||||
#define LISTEN_INITCTL
|
#define LISTEN_INITCTL
|
||||||
#define USE_USPLASH
|
|
||||||
#else /* original Eeepc distribution */
|
#else /* original Eeepc distribution */
|
||||||
#define RANDOMSEED "/var/lib/urandom/random-seed"
|
#define RANDOMSEED "/var/lib/urandom/random-seed"
|
||||||
#define SYSROOT "/mnt"
|
#define SYSROOT "/mnt"
|
||||||
@@ -212,11 +211,6 @@ int main()
|
|||||||
puts("finit-alt " VERSION " (built " __DATE__ " " __TIME__
|
puts("finit-alt " VERSION " (built " __DATE__ " " __TIME__
|
||||||
" by " WHOAMI ")");
|
" by " WHOAMI ")");
|
||||||
|
|
||||||
#ifdef USE_USPLASH
|
|
||||||
system("usplash_write \"TEXT-URGENT finit " VERSION " (build "__DATE__ " " __TIME__ ") \"");
|
|
||||||
system("usplash_write \"PROGRESS 80\"");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
chdir("/");
|
chdir("/");
|
||||||
umask(022);
|
umask(022);
|
||||||
|
|
||||||
@@ -304,6 +298,7 @@ int main()
|
|||||||
*/
|
*/
|
||||||
if (MATCH_CMD(line, "mountdev", x)) {
|
if (MATCH_CMD(line, "mountdev", x)) {
|
||||||
mount("none", "/dev", "tmpfs", 0, "mode=0755");
|
mount("none", "/dev", "tmpfs", 0, "mode=0755");
|
||||||
|
chardev("/dev/null", 0666, 1, 3);
|
||||||
blkdev("/dev/sda1", 0660, 8, 1);
|
blkdev("/dev/sda1", 0660, 8, 1);
|
||||||
blkdev("/dev/sda2", 0660, 8, 2);
|
blkdev("/dev/sda2", 0660, 8, 2);
|
||||||
blkdev("/dev/sda3", 0660, 8, 3);
|
blkdev("/dev/sda3", 0660, 8, 3);
|
||||||
@@ -481,10 +476,6 @@ int main()
|
|||||||
mkdir("/tmp/.ICE-unix", 01777);
|
mkdir("/tmp/.ICE-unix", 01777);
|
||||||
umask(022);
|
umask(022);
|
||||||
|
|
||||||
#ifdef USE_USPLASH
|
|
||||||
system("usplash_write \"PROGRESS 90\"");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
system(GETTY "&");
|
system(GETTY "&");
|
||||||
|
|
||||||
_d("forking");
|
_d("forking");
|
||||||
@@ -514,8 +505,6 @@ int main()
|
|||||||
dup2(0, 1);
|
dup2(0, 1);
|
||||||
dup2(0, 2);
|
dup2(0, 2);
|
||||||
|
|
||||||
touch("/tmp/nologin");
|
|
||||||
|
|
||||||
#ifdef USE_MESSAGE_BUS
|
#ifdef USE_MESSAGE_BUS
|
||||||
_d("dbus");
|
_d("dbus");
|
||||||
mkdir("/var/run/dbus", 0755);
|
mkdir("/var/run/dbus", 0755);
|
||||||
|
|||||||
Reference in new issue
Block a user