/usr/local/jetapps/usr/share/rear/skel/default/etc/scripts
#!/usr/bin/bash echo "Switching Root FS to ramdisk" mkdir /ramdisk mount_opts="" if test -s /etc/ramdisk-free-space; then read target_free junk </etc/ramdisk-free-space read data_size junk <<<$(du -xsm /) # don't use <() because /proc is not mounted! ((total_size = data_size + target_free)) mount_opts="-o size=${total_size}m" echo "Creating ramdisk of $total_size MB to provide $target_free MB free disk space." fi mount -t tmpfs $mount_opts none /ramdisk cp -ax / /ramdisk/ cd /ramdisk exec switch_root /ramdisk init <dev/console &>dev/console
.
Edit
..
Edit
boot
Edit
dhcp-setup-functions.sh
Edit
do-shutdown
Edit
ramdisk-rootfs
Edit
run-automatic-rear
Edit
run-serial
Edit
run-sshd
Edit
run-syslog
Edit
system-setup
Edit
system-setup-functions.sh
Edit
system-setup.d
Edit
system-status.sh
Edit
unlock-opal-disks
Edit