aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>1999-12-07 23:14:59 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>1999-12-07 23:14:59 +0000
commitf29cdb91a392b65606d65a5ac8bfbbebeb782d90 (patch)
tree7cf511946e5991ad2fd66734b1a1d2a5045d7c6b /init
parentba0eb8665b8c676d0d0ad3e4506306a867467b79 (diff)
downloadbusybox-w32-f29cdb91a392b65606d65a5ac8bfbbebeb782d90.tar.gz
busybox-w32-f29cdb91a392b65606d65a5ac8bfbbebeb782d90.tar.bz2
busybox-w32-f29cdb91a392b65606d65a5ac8bfbbebeb782d90.zip
Stuf
git-svn-id: svn://busybox.net/trunk/busybox@168 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'init')
-rw-r--r--init/init.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/init/init.c b/init/init.c
index dbd9f2812..164ee69a3 100644
--- a/init/init.c
+++ b/init/init.c
@@ -151,19 +151,11 @@ void message(int device, char *fmt, ...)
151void set_term( int fd) 151void set_term( int fd)
152{ 152{
153 struct termios tty; 153 struct termios tty;
154#if 0
155 static const char control_characters[] = {
156 '\003', '\034', '\177', '\030', '\004', '\0',
157 '\1', '\0', '\021', '\023', '\032', '\0', '\022',
158 '\017', '\027', '\026', '\0'
159 };
160#else
161 static const char control_characters[] = { 154 static const char control_characters[] = {
162 '\003', '\034', '\177', '\025', '\004', '\0', 155 '\003', '\034', '\177', '\025', '\004', '\0',
163 '\1', '\0', '\021', '\023', '\032', '\0', '\022', 156 '\1', '\0', '\021', '\023', '\032', '\0', '\022',
164 '\017', '\027', '\026', '\0' 157 '\017', '\027', '\026', '\0'
165 }; 158 };
166#endif
167 159
168 tcgetattr(fd, &tty); 160 tcgetattr(fd, &tty);
169 161
@@ -386,7 +378,7 @@ goodnight:
386static void shutdown_system(void) 378static void shutdown_system(void)
387{ 379{
388 const char* const swap_off_cmd[] = { "swapoff", "swapoff", "-a", 0}; 380 const char* const swap_off_cmd[] = { "swapoff", "swapoff", "-a", 0};
389 const char* const umount_cmd[] = { "umount", "umount", "-a", "-n", 0}; 381 const char* const umount_cmd[] = { "umount", "umount", "-a", 0};
390 382
391#ifndef DEBUG_INIT 383#ifndef DEBUG_INIT
392 /* Allow Ctrl-Alt-Del to reboot system. */ 384 /* Allow Ctrl-Alt-Del to reboot system. */