2 * pslash - a lightweight framebuffer splashscreen for embedded devices.
4 * Copyright (c) 2006 Matthew Allum <mallum@o-hand.com>
6 * Parts of this file based on 'usplash' copyright Matthew Garret.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2, or (at your option)
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
24 #include <sys/types.h>
30 int main(int argc, char **argv)
35 tmpdir = getenv("TMPDIR");
42 fprintf(stderr, "Wrong number of arguments\n");
48 if ((pipe_fd = open (PSPLASH_FIFO,O_WRONLY|O_NONBLOCK)) == -1)
50 /* Silently error out instead of covering the boot process in
51 errors when psplash has exitted due to a VC switch */
52 /* perror("Error unable to open fifo"); */
56 write(pipe_fd, argv[1], strlen(argv[1])+1);