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