Added rest
This commit is contained in:
		
							
								
								
									
										9
									
								
								etc/fstab
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								etc/fstab
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| # /etc/fstab: static file system information. | ||||
| # | ||||
| # <file system> <mount pt>     <type>	<options>         <dump> <pass> | ||||
| /dev/root       /              ext2	rw,noauto         0      1 | ||||
| proc		/proc	       proc     defaults	  0	 0 | ||||
| devpts		/dev/pts       devpts   defaults,gid=5,mode=620	  0	 0 | ||||
| tmpfs           /dev/shm       tmpfs    mode=0777         0      0 | ||||
| tmpfs           /tmp           tmpfs    defaults          0      0 | ||||
| sysfs		/sys	       sysfs    defaults	  0	 0 | ||||
							
								
								
									
										1
									
								
								etc/hostname
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								etc/hostname
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| rescueos | ||||
							
								
								
									
										74
									
								
								etc/init.d/rcS
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										74
									
								
								etc/init.d/rcS
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,74 @@ | ||||
| #!/bin/sh | ||||
| EMULATOR=0 | ||||
| mount -t sysfs none /sys | ||||
| mount -n -t proc none /proc | ||||
| echo 200 > /sys/class/backlight/acx565akm/brightness | ||||
| mount -t tmpfs -o size=64k,mode=0755 tmpfs /dev | ||||
| mkdir /dev/pts | ||||
| mount -t devpts devpts /dev/pts | ||||
| mount -t tmpfs -o rw,noexec,nosuid,mode=0755 tmpfs /run | ||||
| mount -t tmpfs -o rw,mode=0755 tmpfs /root/ | ||||
| mount -t tmpfs -o rw,nosuid,nodev tmpfs /tmp/ | ||||
| echo /sbin/mdev.sh > /proc/sys/kernel/hotplug | ||||
| mdev -s | ||||
| find /sys/devices/* -name modalias | while read module ; do | ||||
| modprobe `cat $module` 2> /dev/null | ||||
| done | ||||
| hwclock -s  | ||||
| hostname -F /etc/hostname | ||||
|  | ||||
|  | ||||
| modprobe leds-lp5523 | ||||
|  | ||||
|  | ||||
| /sbin/battery-watchdog & | ||||
| #/rescueOS/charge21.bash > /run/batterylog & | ||||
| clear | ||||
| echo "Disclaimer: This system comes without any warranty. Use it at your own risk." | ||||
| sleep 3 | ||||
| clear | ||||
| echo "Welcome to N900 Rescue Initrd 1.0"  | ||||
| echo | ||||
|  | ||||
| /sbin/loadkmap < /rescueOS/nokia-n900.kmap | ||||
|  | ||||
| for i in 2 3 7 8 ; do | ||||
|     echo 25 > /sys/class/leds/lp5523\:channel$i/brightness | ||||
| done | ||||
|   | ||||
| autostart_script=`grep -q autostart /proc/cmdline && cat /proc/cmdline | sed -e 's/.*autostart=\(.*\)/\1/'` | ||||
| if [ -n "$autostart_script" ] ; then | ||||
| echo "Running $autostart_script"  | ||||
| $autostart_script  | ||||
| fi | ||||
|  | ||||
| touch /run/resolv.conf | ||||
|  | ||||
| echo "The root password is: rootme"  | ||||
|  | ||||
|  | ||||
| echo "Start an FTP server with anonymous up and downloads everywhere? y/n" | ||||
| read result; | ||||
| if [ "$result" = "y" ] ; then | ||||
| tcpsvd -v 0.0.0.0 21 ftpd -w &  | ||||
| fi | ||||
|  | ||||
| echo "Start telnetd? y/n" | ||||
| read result; | ||||
|  | ||||
| if [ "$result" = "y" ] ; then | ||||
| telnetd  | ||||
| fi | ||||
|  | ||||
| echo "Start usb-networking? y/n" | ||||
| read result; | ||||
|  | ||||
| if [ "$result" = "y" ] ; then | ||||
| /rescueOS/usbnetworking-enable.sh | ||||
| fi | ||||
|  | ||||
| if [ "$EMULATOR" = "1" ] ; then | ||||
| udhcpc eth0 | ||||
| fi | ||||
| #We are done. | ||||
|  | ||||
							
								
								
									
										4
									
								
								etc/inittab
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								etc/inittab
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| ::sysinit:/etc/init.d/rcS | ||||
| tty1::respawn:-/bin/bash | ||||
| ttyS0::respawn:-/bin/bash | ||||
| ::shutdown:/bin/sh /rescueOS/shutdown-cleanup  | ||||
							
								
								
									
										1
									
								
								etc/passwd
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								etc/passwd
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| root:$1$sz.20p5a$c40FElyGq0cIfHXeQQChQ/:0:0:root:/root:/bin/bash | ||||
							
								
								
									
										1
									
								
								etc/passwd-
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								etc/passwd-
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| root:$1$6WxBQ9E9$xc/J67N0/3N1HAsGkVur..:0:0:root:/root:/bin/bash | ||||
							
								
								
									
										1
									
								
								etc/profile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								etc/profile
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| PS1="\w\$ " | ||||
		Посилання в новій задачі
	
	Block a user