source: trunk/debian/rootfs/files/all/etc/init.d/rcS.firstboot @ 887

Last change on this file since 887 was 887, checked in by amain, 3 years ago

rootfs: fix/workaround ath9k loading issues. Fixes in rcS.firstboot.

  • Property svn:executable set to *
File size: 1.0 KB
Line 
1#!/bin/sh
2
3# Mount root read-write
4/bin/mount -n -o remount,rw /
5
6# Mount proc - why not? :-)
7/bin/mount -t proc none /proc
8
9# Mount sys
10mount -t sysfs none /sys
11
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
21while 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
30/bin/echo
31/bin/echo "Welcome to the DebWrt post installation!"
32/bin/echo
33/bin/echo "Press ctrl-d for normal boot. Use vim.tiny to edit files."
34/bin/echo
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
37/bin/echo "Run /usr/sbin/PostInstall to complete the second stage installation"
38
39# Start bash
40/bin/bash
41
42# Normal boot procedure
43exec /etc/init.d/rc S
Note: See TracBrowser for help on using the repository browser.