|
[Astlinux-commits] SF.net SVN: astlinux:[5222]
branches/1.0/project/astlinux/target_skeleton/ etc/rc
From: <abe...@us...> - 2011-10-20 16:12:25
|
Revision: 5222
http://astlinux.svn.sourceforge.net/astlinux/?rev=5222&view=rev
Author: abelbeck
Date: 2011-10-20 16:12:19 +0000 (Thu, 20 Oct 2011)
Log Message:
-----------
allow rc.modules to contain module options, eg. 'foo opt=3'
Modified Paths:
--------------
branches/1.0/project/astlinux/target_skeleton/etc/rc
Modified: branches/1.0/project/astlinux/target_skeleton/etc/rc
===================================================================
--- branches/1.0/project/astlinux/target_skeleton/etc/rc 2011-10-19 19:52:25 UTC (rev 5221)
+++ branches/1.0/project/astlinux/target_skeleton/etc/rc 2011-10-20 16:12:19 UTC (rev 5222)
@@ -214,7 +214,7 @@
if [ "$i" = "sleep" ]; then
sleep 2
else
- modprobe "$i" 2>/dev/null
+ modprobe $i 2>/dev/null
fi
done)
sleep 5
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
[Astlinux-commits] SF.net SVN: astlinux:[5666]
branches/1.0/project/astlinux/target_skeleton/ etc/rc
From: <abe...@us...> - 2012-09-06 13:52:56
|
Revision: 5666
http://astlinux.svn.sourceforge.net/astlinux/?rev=5666&view=rev
Author: abelbeck
Date: 2012-09-06 13:52:50 +0000 (Thu, 06 Sep 2012)
Log Message:
-----------
increase default /var size limit to 10 MB
Modified Paths:
--------------
branches/1.0/project/astlinux/target_skeleton/etc/rc
Modified: branches/1.0/project/astlinux/target_skeleton/etc/rc
===================================================================
--- branches/1.0/project/astlinux/target_skeleton/etc/rc 2012-09-06 02:31:02 UTC (rev 5665)
+++ branches/1.0/project/astlinux/target_skeleton/etc/rc 2012-09-06 13:52:50 UTC (rev 5666)
@@ -121,7 +121,7 @@
esac
mount -t tmpfs -o size=200k none /dev
- mount -t tmpfs -o size=5000k none /var
+ mount -t tmpfs -o size=10000k none /var
mount -t tmpfs -o size=10000k none /tmp
mount -t sysfs none /sys
@@ -145,7 +145,7 @@
echo "proc /proc proc defaults 0 0
none /dev tmpfs size=200k 0 0
none /tmp tmpfs size=10000k 0 0
-none /var tmpfs size=5000k 0 0
+none /var tmpfs size=10000k 0 0
" >> /tmp/etc/fstab
if [ -d /stat/dev ]; then
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
[Astlinux-commits] SF.net SVN: astlinux:[5677]
branches/1.0/project/astlinux/target_skeleton/ etc/rc
From: <abe...@us...> - 2012-09-12 19:55:27
|
Revision: 5677
http://astlinux.svn.sourceforge.net/astlinux/?rev=5677&view=rev
Author: abelbeck
Date: 2012-09-12 19:55:20 +0000 (Wed, 12 Sep 2012)
Log Message:
-----------
pre init, use 'devtmpfs' mounted by the kernel as /dev. Fallback to previous tmpfs method should devtmpfs not be available... which it shouldn't
Modified Paths:
--------------
branches/1.0/project/astlinux/target_skeleton/etc/rc
Modified: branches/1.0/project/astlinux/target_skeleton/etc/rc
===================================================================
--- branches/1.0/project/astlinux/target_skeleton/etc/rc 2012-09-10 03:52:34 UTC (rev 5676)
+++ branches/1.0/project/astlinux/target_skeleton/etc/rc 2012-09-12 19:55:20 UTC (rev 5677)
@@ -120,38 +120,53 @@
;;
esac
- mount -t tmpfs -o size=200k none /dev
- mount -t tmpfs -o size=10000k none /var
+ devtmpfs="$(awk '/^devtmpfs/ { print $2; nextfile; }' /proc/mounts)"
+ if [ -n "$devtmpfs" ]; then
+ mount -o remount,size=512k "$devtmpfs"
+ if [ "$devtmpfs" != "/dev" ]; then
+ mount -o move "$devtmpfs" /dev
+ fi
+ fstab_dev=""
+ else
+ echo "Warning: devtmpfs not available, falling back to tmpfs for /dev" >&2
+ mount -t tmpfs -o size=512k none /dev
+ fstab_dev="none /dev tmpfs size=512k 0 0"
+
+ if [ -d /stat/dev ]; then
+ cp -a /stat/dev/. /dev/
+ fi
+ fi
+
mount -t tmpfs -o size=10000k none /tmp
+ fstab_tmp="none /tmp tmpfs size=10000k 0 0"
+ mount -t tmpfs -o size=10000k none /var
+ fstab_var="none /var tmpfs size=10000k 0 0"
+
mount -t sysfs none /sys
- mkdir /dev/pts
+ mkdir -p /dev/pts
mount -t devpts none /dev/pts
- mkdir /dev/usb
+ mkdir -p /dev/usb
mount -t usbfs usbfs /proc/bus/usb
- mkdir /tmp/etc
- mkdir /tmp/etc/modprobe.d
+ mkdir -p /tmp/etc/modprobe.d
echo '## Auto-generated file, do not edit!!' >/tmp/etc/modprobe.d/alias.conf
if [ -n "$ASTURW" ]; then
- echo "# UNIONFS" > /tmp/etc/fstab
+ fstab_base="# UNIONFS"
else
- echo "$ROOTDEV / ext2 ro 0 0" > /tmp/etc/fstab
+ fstab_base="$ROOTDEV / ext2 ro 0 0"
fi
- echo "proc /proc proc defaults 0 0
-none /dev tmpfs size=200k 0 0
-none /tmp tmpfs size=10000k 0 0
-none /var tmpfs size=10000k 0 0
-" >> /tmp/etc/fstab
+ echo "${fstab_base}
+proc /proc proc defaults 0 0${fstab_dev:+
+$fstab_dev}${fstab_tmp:+
+$fstab_tmp}${fstab_var:+
+$fstab_var}
+" > /tmp/etc/fstab
- if [ -d /stat/dev ]; then
- cp -a /stat/dev/. /dev/
- fi
-
mkdir /var/spool /var/lib /var/lib/nfs
touch /var/lib/nfs/etab /var/lib/nfs/xtab /var/lib/nfs/rmtab
mkdir /var/empty /var/lock /var/db /var/run /var/racoon
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
[Astlinux-commits] SF.net SVN: astlinux:[5679]
branches/1.0/project/astlinux/target_skeleton/ etc/rc
From: <abe...@us...> - 2012-09-13 15:05:03
|
Revision: 5679
http://astlinux.svn.sourceforge.net/astlinux/?rev=5679&view=rev
Author: abelbeck
Date: 2012-09-13 15:04:52 +0000 (Thu, 13 Sep 2012)
Log Message:
-----------
cleanup, no functional change
Modified Paths:
--------------
branches/1.0/project/astlinux/target_skeleton/etc/rc
Modified: branches/1.0/project/astlinux/target_skeleton/etc/rc
===================================================================
--- branches/1.0/project/astlinux/target_skeleton/etc/rc 2012-09-12 19:59:06 UTC (rev 5678)
+++ branches/1.0/project/astlinux/target_skeleton/etc/rc 2012-09-13 15:04:52 UTC (rev 5679)
@@ -160,11 +160,11 @@
fstab_base="$ROOTDEV / ext2 ro 0 0"
fi
- echo "${fstab_base}
+ echo "$fstab_base
proc /proc proc defaults 0 0${fstab_dev:+
-$fstab_dev}${fstab_tmp:+
-$fstab_tmp}${fstab_var:+
-$fstab_var}
+$fstab_dev}
+$fstab_tmp
+$fstab_var
" > /tmp/etc/fstab
mkdir /var/spool /var/lib /var/lib/nfs
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
[Astlinux-commits] SF.net SVN: astlinux:[6333]
branches/1.0/project/astlinux/target_skeleton/ etc/rc
From: <abe...@us...> - 2014-01-02 17:01:28
|
Revision: 6333
http://sourceforge.net/p/astlinux/code/6333
Author: abelbeck
Date: 2014-01-02 17:01:25 +0000 (Thu, 02 Jan 2014)
Log Message:
-----------
/etc/rc startup script, trigger udev USB subsystem in case USB events occured before udev was started
Devel List: http://sourceforge.net/p/astlinux/mailman/astlinux-devel/thread/24AC4335-5CC2-47FF-AA61-70035CD0BA15%40lonnie.abelbeck.com/#msg31799961
Modified Paths:
--------------
branches/1.0/project/astlinux/target_skeleton/etc/rc
Modified: branches/1.0/project/astlinux/target_skeleton/etc/rc
===================================================================
--- branches/1.0/project/astlinux/target_skeleton/etc/rc 2014-01-02 15:54:25 UTC (rev 6332)
+++ branches/1.0/project/astlinux/target_skeleton/etc/rc 2014-01-02 17:01:25 UTC (rev 6333)
@@ -175,6 +175,8 @@
mkdir -m 0700 /var/tmp/asterisk-gui
/sbin/udevd --daemon
+ # Trigger udev USB subsystem in case USB events occured before udev was started.
+ /sbin/udevadm trigger --action=add --subsystem-match=usb
case $ASTLINUX in
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
[Astlinux-commits] SF.net SVN: astlinux:[7989]
branches/1.0/project/astlinux/target_skeleton/ etc/rc
From: <abe...@us...> - 2016-11-26 22:16:51
|
Revision: 7989
http://sourceforge.net/p/astlinux/code/7989
Author: abelbeck
Date: 2016-11-26 22:16:48 +0000 (Sat, 26 Nov 2016)
Log Message:
-----------
/etc/rc, remove stale code from old NFS support, related to r5771
Revision Links:
--------------
http://sourceforge.net/p/astlinux/code/5771
Modified Paths:
--------------
branches/1.0/project/astlinux/target_skeleton/etc/rc
Modified: branches/1.0/project/astlinux/target_skeleton/etc/rc
===================================================================
--- branches/1.0/project/astlinux/target_skeleton/etc/rc 2016-11-26 01:04:50 UTC (rev 7988)
+++ branches/1.0/project/astlinux/target_skeleton/etc/rc 2016-11-26 22:16:48 UTC (rev 7989)
@@ -167,8 +167,7 @@
$fstab_var
" > /tmp/etc/fstab
- mkdir /var/spool /var/lib /var/lib/nfs
- touch /var/lib/nfs/etab /var/lib/nfs/xtab /var/lib/nfs/rmtab
+ mkdir /var/spool /var/lib
mkdir /var/empty /var/lock /var/db /var/run /var/racoon
touch /var/run/utmp
mkdir /var/run/screen /var/state /var/tmp /tmp/bin
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
[Astlinux-commits] SF.net SVN: astlinux:[8228]
branches/1.0/project/astlinux/target_skeleton/ etc/rc
From: <abe...@us...> - 2017-03-24 16:42:57
|
Revision: 8228
http://sourceforge.net/p/astlinux/code/8228
Author: abelbeck
Date: 2017-03-24 16:42:55 +0000 (Fri, 24 Mar 2017)
Log Message:
-----------
genx86_64-vm, test for Hyper-V and modprobe hv_* modules automatically
Modified Paths:
--------------
branches/1.0/project/astlinux/target_skeleton/etc/rc
Modified: branches/1.0/project/astlinux/target_skeleton/etc/rc
===================================================================
--- branches/1.0/project/astlinux/target_skeleton/etc/rc 2017-03-24 16:05:40 UTC (rev 8227)
+++ branches/1.0/project/astlinux/target_skeleton/etc/rc 2017-03-24 16:42:55 UTC (rev 8228)
@@ -213,9 +213,15 @@
;;
genx86_64-vm)
+ # Xen
if [ -f /sys/hypervisor/type ] && grep -q 'xen' /sys/hypervisor/type; then
modprobe xen-netfront
fi
+ # Hyper-V
+ if lscpu | grep -q -i '^hypervisor vendor: *microsoft'; then
+ modprobe hv_netvsc
+ modprobe hv_utils
+ fi
;;
esac
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
[Astlinux-commits] SF.net SVN: astlinux:[8322]
branches/1.0/project/astlinux/target_skeleton/ etc/rc
From: <abe...@us...> - 2017-05-22 13:52:42
|
Revision: 8322
http://sourceforge.net/p/astlinux/code/8322
Author: abelbeck
Date: 2017-05-22 13:52:40 +0000 (Mon, 22 May 2017)
Log Message:
-----------
The kernel config CONFIG_USB_DEVICEFS creating /proc/bus/usb is no longer available, /dev/bus/usb is created instead
Modified Paths:
--------------
branches/1.0/project/astlinux/target_skeleton/etc/rc
Modified: branches/1.0/project/astlinux/target_skeleton/etc/rc
===================================================================
--- branches/1.0/project/astlinux/target_skeleton/etc/rc 2017-05-22 13:34:09 UTC (rev 8321)
+++ branches/1.0/project/astlinux/target_skeleton/etc/rc 2017-05-22 13:52:40 UTC (rev 8322)
@@ -148,9 +148,6 @@
mkdir -p /dev/pts
mount -t devpts none /dev/pts
- mkdir -p /dev/usb
- mount -t usbfs usbfs /proc/bus/usb
-
mkdir -p /tmp/etc/modprobe.d
echo '## Auto-generated file, do not edit!!' >/tmp/etc/modprobe.d/alias.conf
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|