File tree 2 files changed +22
-1
lines changed
2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,12 @@ Messy scrips for updating your device using ubports dev ppa
5
5
## Install
6
6
7
7
```
8
- wget -O - https://github.com/raw/mariogrip/qa-scripts/master/qa-install | bash
8
+ wget -qO - https://github.com/raw/mariogrip/qa-scripts/master/qa-install | bash
9
9
```
10
10
11
11
12
12
## Usage
13
13
14
14
* ` qa-add ` - adds and setup ubports dev ppa
15
15
* ` qa-update ` - Updates from the dev ppa
16
+ * ` qa-remove ` - Remove dev ppa and revert back packages
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ if [ ! -f /etc/apt/sources.list.d/ubports-developers-ubuntu-overlay-dev-vivid.list ]; then
4
+ echo " The dev ppa is not added, nothing to remove."
5
+ exit
6
+ fi
7
+
8
+ # Gimme root
9
+ [ $( id -u) -ne 0 ] && exec sudo $0 $@
10
+
11
+ mount -o rw,remount /
12
+
13
+ LINE=$( grep -n " Pin: release o=LP-PPA-ubports-developers-overlay-dev" /etc/apt/preferences.d/extra-ppas.pref | grep -Eo ' ^[^:]+' )
14
+ LINES=" $(( LINE - 2 )) ,$(( LINE + 1 )) d"
15
+
16
+ sed -e " $LINES " /etc/apt/preferences.d/extra-ppas.pref | tee /etc/apt/preferences.d/extra-ppas.pref
17
+ rm /etc/apt/sources.list.d/ubports-developers-ubuntu-overlay-dev-vivid.list || true
18
+
19
+ apt update
20
+ apt dist-upgrade
You can’t perform that action at this time.
0 commit comments