]> git.saurik.com Git - apple/hfs.git/blame_incremental - core/install
hfs-556.100.11.tar.gz
[apple/hfs.git] / core / install
... / ...
CommitLineData
1#!/bin/sh
2
3# install
4# hfs
5#
6# Created by Chris Suter on 4/30/15.
7#
8
9if [ ! "$MACHINE" ] ; then
10 echo "MACHINE not specified"
11 exit 1
12fi
13
14ROOT=hfs-root.tbz
15
16# Virtual machine stuff
17[ "$VM" != "" -a "$VMRUN" != "" ] && { ping -c 1 -t 2 $MACHINE || {
18 VMX="$HOME/Documents/Virtual Machines.localized/$VM.vmwarevm/$VM.vmx"
19
20 "$VMRUN" revertToSnapshot "$VMX" "Safe" || exit 1
21 "$VMRUN" start "$VMX" || exit 1
22 }
23}
24
25rsync -P "$BUILT_PRODUCTS_DIR/$ROOT" $MACHINE: || exit 1
26
27ssh $MACHINE bash -x -s <<EOF
28sudo darwinup uninstall $ROOT
29sudo darwinup install $ROOT
30sudo kextcache -update-volume /
31sync
32echo Rebooting...
33nohup bash -c "sleep 0.6 ; sudo reboot -q" >/dev/null 2>/dev/null </dev/null &
34sleep 0.3
35EOF