Skip to content

Commit e590e0a

Browse files
committed
Replace uninstall script with chromebrew
1 parent b9b5abe commit e590e0a

File tree

3 files changed

+40
-8
lines changed

3 files changed

+40
-8
lines changed

README.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Useful bash utility scripts for Chrome/Chromium OS systems.
33

44
## Overview
5-
[Neverware](https://www.neverware.com/) disables the ability to perform a powerwash in [CloudReady](https://www.neverware.com/#getcloudready) and [Google](https://www.google.com/) disables execute permissions on certain directories to protect [Chromium OS](https://www.chromium.org/chromium-os). These scripts are useful to [powerwash](https://support.google.com/chromebook/answer/183084?hl=en) your Chromebook and reset to the factory settings, uninstall [Chromebrew](https://github.com/skycocker/chromebrew) if that is installed or mount your filesystem to be read/write.
5+
[Neverware](https://www.neverware.com/) disables the ability to perform a [powerwash](https://support.google.com/chromebook/answer/183084?hl=en) in [CloudReady](https://www.neverware.com/#getcloudready) and [Google](https://www.google.com/) disables execute permissions on certain directories to protect [Chromium OS](https://www.chromium.org/chromium-os). These scripts are useful to [powerwash](https://support.google.com/chromebook/answer/183084?hl=en) your [Chromebook](https://www.google.com/chromebook/) and reset to the factory settings, install, remove or update [Chromebrew](https://github.com/skycocker/chromebrew) or remove rootfs verification and mount your filesystem to be read/write.
66

77
## WARNING
88
If used improperly, these scripts can render your system useless. Please proceed with caution and do not execute unless you know what you're doing. Review the `References` section below to understand the impact of the changes. As true of any open source software, I'm not responsible if you brick your system.
@@ -13,15 +13,20 @@ $ git clone https://github.com/uberhacker/chromebrew-scripts
1313
$ sudo cp chromebrew-scripts/* /usr/local/bin
1414
```
1515
## Usage
16+
Install Chromebrew: `$ chromebrew -i | --install`
17+
18+
Remove Chromebrew: `$ chromebrew -r | --remove`
19+
20+
Update Chromebrew: `$ chromebrew -u | --update`
21+
1622
Reset to factory settings: `$ powerwash`
1723

1824
Remove rootfs verification: `$ rootfs`
1925

2026
Mount the filesystem read/write: `$ rw`
2127

22-
Uninstall Chromebrew: `$ uninstall`
23-
2428
## References
29+
- https://support.google.com/chromebook/answer/183084?hl=en
2530
- https://neverware.zendesk.com/hc/en-us/articles/115000765287--Powerwash-via-the-cmd-line
2631
- https://www.chromium.org/chromium-os/poking-around-your-chrome-os-device#TOC-Making-changes-to-the-filesystem
2732
- https://sites.google.com/site/cr48ite/getting-technical/remove-rootfs-verification-make-read-write

chromebrew

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash
2+
VALID=
3+
if test $1; then
4+
OPTS="-i --install -r --remove -u --update"
5+
for o in $OPTS; do
6+
if [ $o == $1 ]; then
7+
VALID=1
8+
break
9+
fi
10+
done
11+
fi
12+
if [ -z "$VALID" ]; then
13+
echo "Usage: chromebrew -i | --install | -r | --remove | -u | --update"
14+
exit 1
15+
fi
16+
if [[ $1 == "-i" || $1 == "--install" ]]; then
17+
command -v crew > /dev/null && { echo "chromebrew is currently installed."; exit 1; }
18+
rm -f install.sh
19+
curl -Ls git.io/vddgY -o install.sh && yes | bash install.sh
20+
else
21+
command -v crew > /dev/null || { echo "chromebrew is not installed. To install, execute 'chromebrew -i | --install'."; exit 1; }
22+
fi
23+
if [[ $1 == "-r" || $1 == "--remove" ]]; then
24+
echo -n "WARNING! Are you sure you want to uninstall crew? [y/N]: "; read -n1 UNINSTALL
25+
if [ "$UNINSTALL" == "y" ]; then
26+
sudo dev_install --reinstall -y
27+
fi
28+
fi
29+
if [[ $1 == "-u" || $1 == "--update" ]]; then
30+
crew update
31+
yes | crew upgrade
32+
fi

uninstall

-5
This file was deleted.

0 commit comments

Comments
 (0)