Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Copyright (C) 2001 Erik Andersen <[email protected]>
- #
- # Note: BusyBox init doesn't support runlevels. The runlevels field is
- # completely ignored by BusyBox init. If you want runlevels, use
- # sysvinit.
- #
- # Format for each entry: <id>:<runlevels>:<action>:<process>
- #
- # id == tty to run on, or empty for /dev/console
- # runlevels == ignored
- # action == one of sysinit, respawn, askfirst, wait, and once
- # process == program to run
- # Startup the system
- ::sysinit:/bin/mount -t proc proc /proc
- ::sysinit:/bin/mount -o remount,rw /
- ::sysinit:/bin/mkdir -p /dev/pts
- ::sysinit:/bin/mkdir -p /dev/shm
- ::sysinit:/bin/mount -a
- ::sysinit:/bin/hostname -F /etc/hostname
- # now run any rc scripts
- ::sysinit:/etc/init.d/rcS
- # Put a getty on the serial port
- console::respawn:/sbin/getty -L console 0 vt100 # GENERIC_SERIAL
- # Stuff to do for the 3-finger salute
- #::ctrlaltdel:/sbin/reboot
- # Stuff to do before rebooting
- ::shutdown:/etc/init.d/rcK
- ::shutdown:/sbin/swapoff -a
- ::shutdown:/bin/umount -a -r
- ########## /etc/profile #############################
- export PATH=/bin:/sbin:/usr/bin:/usr/sbin
- if [ "$PS1" ]; then
- if [ "`id -u`" -eq 0 ]; then
- export PS1='# '
- else
- export PS1='$ '
- fi
- fi
- export PAGER='/bin/more '
- export EDITOR='/bin/vi'
- # Source configuration files from /etc/profile.d
- for i in /etc/profile.d/*.sh ; do
- if [ -r "$i" ]; then
- . $i
- fi
- unset i
- done
- ########################### /etc/passwd ############################
- root:x:0:0:root:/root:/bin/sh
- daemon:x:1:1:daemon:/usr/sbin:/bin/false
- bin:x:2:2:bin:/bin:/bin/false
- sys:x:3:3:sys:/dev:/bin/false
- sync:x:4:100:sync:/bin:/bin/sync
- mail:x:8:8:mail:/var/spool/mail:/bin/false
- www-data:x:33:33:www-data:/var/www:/bin/false
- operator:x:37:37:Operator:/var:/bin/false
- nobody:x:65534:65534:nobody:/home:/bin/false
- sshd:x:1000:1000:SSH drop priv user:/:/bin/false
Advertisement
Add Comment
Please, Sign In to add comment