summaryrefslogtreecommitdiff
path: root/default-config/etc/rc.d
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-09-19 18:08:10 +0000
committerAaron Griffin <aaron@archlinux.org>2006-09-19 18:08:10 +0000
commit59ddc5be61a1ee5dadc32c8a2255931d62bbce2a (patch)
treee68bbecc87bc854d3097d9dd6f8b850bc50325cc /default-config/etc/rc.d
parent8660ae6b5a7209f6583926673af75b52b1b4f523 (diff)
git-svn-id: http://phraktured.net/archiso@12 00a9fe69-e71b-0410-bb23-df0e5024db41
Diffstat (limited to 'default-config/etc/rc.d')
-rw-r--r--default-config/etc/rc.d/archiso22
1 files changed, 14 insertions, 8 deletions
diff --git a/default-config/etc/rc.d/archiso b/default-config/etc/rc.d/archiso
index 35ce22c..17525ea 100644
--- a/default-config/etc/rc.d/archiso
+++ b/default-config/etc/rc.d/archiso
@@ -1,9 +1,20 @@
# vim: set ft=sh:
. /etc/rc.conf
. /etc/rc.d/functions
-. /etc/archiso/functions # above goes in this file...
+. /etc/archiso/functions
-do_mounts ()
+
+scan_network ()
+{
+ netparam () { echo ${2} | sed "s|.*${1}\([^ ]*\).*|\1|gi"; }
+ #
+ netdevs=$(cat /proc/net/dev | grep ':' | cut -d':' -f1)
+ for net in ${netdev}; do
+ stats=$(ifconfig ${net} | tr -s "\n" " ")
+
+}
+
+scan_mount_pts ()
{
#iterate over all block devices
stat_busy "Scanning local block devices"
@@ -27,12 +38,7 @@ do_mounts ()
stat_done
}
-do_locale ()
-{
- #copy from rc.sysinit - use cmdline_param locale (or lang ?)
-}
-
-do_swap ()
+scan_swap ()
{
#Archie finds a pagefile.sys for windows/dos machines... may add later
stat_busy "Finding existing swap partitions"