Skip to content

Commit 20403fb

Browse files
committed
add removeMS script
1 parent 5906d6b commit 20403fb

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

functions/utility.function

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,5 +456,33 @@ EOF
456456
sudo mv gpsupdate.desktop /usr/share/applications/
457457
}
458458

459+
##################################
460+
# removeMS Tool
461+
##################################
459462

463+
REMOVEMS(){
464+
#download the file
465+
cd $HOME/bin
466+
wget https://raw.githubusercontent.com/km4ack/pi-scripts/master/removeMS
467+
chmod +x $HOME/bin/removeMS
468+
#place user directions on desktop
469+
cat <<EOF>$HOME/Desktop/Block-Microsoft.txt
470+
You have chosen to install the removeMS
471+
script which will block the Pi from accessing
472+
the Microsoft repository. The block has not
473+
been applied yet. To apply the block, open a
474+
terminal window and run the following command:
475+
476+
removeMS
477+
478+
You only need to perform the block one time for
479+
each Pi. You can delete the removeMS script
480+
from your system by running:
481+
482+
rm ~/bin/removeMS
483+
484+
More information is available in this video
485+
https://youtu.be/I7jLVgnnUW0
486+
EOF
487+
}
460488

0 commit comments

Comments
 (0)