Last change
on this file since 887 was
887,
checked in by amain, 6 years ago
|
rootfs: fix/workaround ath9k loading issues. Fixes in rcS.firstboot.
|
-
Property svn:executable set to
*
|
File size:
1.0 KB
|
Rev | Line | |
---|
[880] | 1 | #!/bin/sh |
---|
[66] | 2 | |
---|
| 3 | # Mount root read-write |
---|
[887] | 4 | /bin/mount -n -o remount,rw / |
---|
[66] | 5 | |
---|
| 6 | # Mount proc - why not? :-) |
---|
| 7 | /bin/mount -t proc none /proc |
---|
| 8 | |
---|
[887] | 9 | # Mount sys |
---|
| 10 | mount -t sysfs none /sys |
---|
| 11 | |
---|
[66] | 12 | # Setup the network |
---|
| 13 | /sbin/ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up |
---|
| 14 | /sbin/ifconfig eth0:1 192.168.1.20 netmask 255.255.255.0 up |
---|
| 15 | |
---|
| 16 | # Mount devpts to allow telnet and ssh logins |
---|
| 17 | /bin/mkdir -p /dev/pts/ |
---|
| 18 | /bin/mount -t devpts none /dev/pts/ |
---|
| 19 | |
---|
| 20 | # Run telnetd in background |
---|
| 21 | while true; do /usr/sbin/in.telnetd -debug 23; /bin/sleep 1; done& |
---|
| 22 | |
---|
| 23 | # Run SSHd in background - nice scp-ing |
---|
| 24 | /usr/sbin/sshd -D & |
---|
| 25 | |
---|
| 26 | # Setting hostnams |
---|
| 27 | /bin/hostname `cat /etc/hostname` |
---|
| 28 | |
---|
| 29 | # Run bash instead of normal boot procedure |
---|
[75] | 30 | /bin/echo |
---|
| 31 | /bin/echo "Welcome to the DebWrt post installation!" |
---|
| 32 | /bin/echo |
---|
[66] | 33 | /bin/echo "Press ctrl-d for normal boot. Use vim.tiny to edit files." |
---|
| 34 | /bin/echo |
---|
[75] | 35 | /bin/echo "Note that both telnetd and sshd are running on: 192.168.1.1 and on 192.168.1.20." |
---|
| 36 | /bin/echo |
---|
[301] | 37 | /bin/echo "Run /usr/sbin/PostInstall to complete the second stage installation" |
---|
| 38 | |
---|
| 39 | # Start bash |
---|
[66] | 40 | /bin/bash |
---|
| 41 | |
---|
| 42 | # Normal boot procedure |
---|
| 43 | exec /etc/init.d/rc S |
---|
Note: See
TracBrowser
for help on using the repository browser.