Skip to content

Instantly share code, notes, and snippets.

@jstvz
Last active December 11, 2015 21:19
Show Gist options
  • Save jstvz/4661740 to your computer and use it in GitHub Desktop.
Save jstvz/4661740 to your computer and use it in GitHub Desktop.
#http://joshashby.com/2011/08/arch-droid/#
#quick hack to start up everything for the chrooted Arch
if [ "mount | grep proc" ]; then
echo "Proc already mounted, skipping..."
else
mount -t proc proc /proc
fi
if [ "mount | grep sysfs" ]; then
echo "Sysfs already mounted, skipping..."
else
mount -t sysfs sysfs /sys
fi
if [ "mount | grep devpts" ]; then
echo "Sysfs already mounted, skipping..."
else
mount /dev/pts
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment