summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorrbalocca <rbalocca@vyatta.com>2008-03-06 13:36:08 -0800
committerrbalocca <rbalocca@vyatta.com>2008-03-06 13:36:08 -0800
commitc1ccd5a4e04651866f97f3de40f85c431e36029a (patch)
tree62bb2d27829ebff007ab333868ec2a258f719197 /scripts
parent95de94cc4dc13f906007fbe1e8634835574f8ecf (diff)
parent723c2abba6ca328cac56147c29c98360b712a6ab (diff)
downloadvyatta-cfg-system-c1ccd5a4e04651866f97f3de40f85c431e36029a.tar.gz
vyatta-cfg-system-c1ccd5a4e04651866f97f3de40f85c431e36029a.zip
Merge branch 'glendale' into hollywood
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install-system34
-rw-r--r--scripts/snmp/vyatta-snmp.pl4
2 files changed, 21 insertions, 17 deletions
diff --git a/scripts/install-system b/scripts/install-system
index 44582364..50b445cc 100755
--- a/scripts/install-system
+++ b/scripts/install-system
@@ -73,8 +73,8 @@ SPID=$$
PWRESET=/opt/vyatta/sbin/standalone_root_pw_reset
# trap signals so we can kill runaway progress indicators
-trap 'progress_indicator "stop"; exit 1' 1
-trap 'progress_indicator "stop"; exit 1' 2
+trap 'progress_indicator stop; exit 1' 1
+trap 'progress_indicator stop; exit 1' 2
# turn off any mounted swap partitions
turnoffswap () {
@@ -224,7 +224,7 @@ select_partition () {
text=$2
echo -n "Looking for appropriate partitions: "
- progress_indicator "start"
+ progress_indicator start
# initialize out global var. using globals in this way is bad form. I know.
PARTITION=''
@@ -243,7 +243,7 @@ select_partition () {
fi
done
- progress_indicator "stop"
+ progress_indicator stop
echo "OK"
if [ -n "$parts" ]; then
@@ -335,7 +335,7 @@ make_filesystem () {
echo -n "Creating filesystem on /dev/$ldrive: "
echo "Creating filesystem on /dev/$ldrive..." >> $INSTALL_LOG
- progress_indicator "start"
+ progress_indicator start
output=$(mke2fs -j /dev/$ldrive 2>&1)
status=$?
if [ "$status" != 0 ]; then
@@ -343,7 +343,7 @@ make_filesystem () {
echo -e "Error: couldn't create the root filesystem.\n/sbin/mke2fs -j /dev/$lDRIVE\n$output"
exit 1
fi
- progress_indicator "stop"
+ progress_indicator stop
echo "OK"
}
@@ -407,7 +407,7 @@ install_root_filesystem () {
fi
echo -n "Copying system image files to /dev/$ROOT_PARTITION: "
- progress_indicator "start"
+ progress_indicator start
# Mount the squashfs for copying
output=$(mkdir -p /mnt/squashfs)
output=$(mount /live/image/live/filesystem.squashfs /mnt/squashfs -t squashfs -o loop)
@@ -451,7 +451,7 @@ install_root_filesystem () {
cp /etc/hostname $rootfsdir/etc/
cp /etc/hosts $rootfsdir/etc/
- progress_indicator "stop"
+ progress_indicator stop
echo "OK"
}
@@ -539,9 +539,9 @@ install_grub () {
echo "Setting up grub..." >> $INSTALL_LOG
# Install grub in the boot sector of the primary drive
- progress_indicator "start"
+ progress_indicator start
grub-install --no-floppy --root-directory=$rootfsdir /dev/$INSTALL_DRIVE >>$INSTALL_LOG 2>&1
- progress_indicator "stop"
+ progress_indicator stop
# TODO: This needs to be changed to map to the correct drive
part=$(echo $ROOT_PARTITION | sed 's/[^0-9]//g')
@@ -759,9 +759,15 @@ unmount () {
progress_indicator () {
case "$1" in
- "start") $vyatta_bindir/progress-indicator $SPID &
+ start) $bindir/progress-indicator $SPID &
;;
- "stop") rm -f /tmp/pi.$SPID
+ *)
+ if ! rm /tmp/pi.$SPID 2>/dev/null
+ then
+ sleep 1
+ rm /tmp/pi.$SPID 2>/dev/null
+ fi
+
sleep 1
echo -n -e "\b"
;;
@@ -801,9 +807,9 @@ done
# some drives don't show up in /proc/partitions so we need to bootstrap them
echo -n "Probing drives: "
-progress_indicator "start"
+progress_indicator start
probe_drives
-progress_indicator "stop"
+progress_indicator stop
echo "OK"
echo "The Vyatta image will require a minimum ${ROOT_MIN}MB root."
diff --git a/scripts/snmp/vyatta-snmp.pl b/scripts/snmp/vyatta-snmp.pl
index 42988fef..a7450d8e 100644
--- a/scripts/snmp/vyatta-snmp.pl
+++ b/scripts/snmp/vyatta-snmp.pl
@@ -64,10 +64,8 @@ sub snmp_get_constants {
my $date = `date`;
chomp $date;
$output = "#\n# autogenerated by vyatta-snmp.pl on $date\n#\n";
- $output .= "dlmod bgp4_mib_1657 $mibdir/libbgp4_mib_1657.so\n";
- $output .= "dlmod ospf_mib_1850 $mibdir/libospf_mib_1850.so\n";
$output .= "trap2sink localhost vyatta 51510\n";
-
+ $output .= "sysServices 14\n";
return $output;
}