summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulioJu2016-05-29 16:30:58 +0200
committerJulioJu2016-05-29 16:30:58 +0200
commite9952c6dd92bec7bd00dfc720f77493045407dcd (patch)
tree32edf5f328cbc8043f79bad72ced73e1ef1a0b13
parentf94853515ce44bc268ac0d56c4e902e9e4fd8af8 (diff)
downloadaur-e9952c6dd92bec7bd00dfc720f77493045407dcd.tar.gz
Change downloader
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD11
-rw-r--r--marionnet-trunk.install1387
-rw-r--r--marionnet.install6
-rw-r--r--marionnet_from_scratch-Downloader498
5 files changed, 1899 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4f107305ea6..cce46fed629 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -26,12 +26,14 @@ pkgbase = marionnet-trunk
source = http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/dist/lablgtk-2.14.2.tar.gz
source = https://www.marionnet.org/download/marionnet_from_scratch/mirror/ocamlbricks-trunk.tar.gz
source = https://www.marionnet.org/download/marionnet_from_scratch/mirror/marionnet-trunk.tar.gz
- source = https://raw.githubusercontent.com/JulioJu/Marionnet-trunk_ArchLinux-installer/master/Makefile.patch
+ source = https://raw.githubusercontent.com/JulioJu/Marionnet_ArchLinux_Installer/master/Makefile-trunk.patch
+ source = https://raw.githubusercontent.com/JulioJu/Marionnet_ArchLinux_Installer/master/marionnet_from_scratch-Downloader
sha256sums = 4f81ab86258be0eea1507dd5338c8670490f8616249821e731f8ac1c64caa4a7
sha256sums = 4981abedabdc462303f345104042c88af227ccd50fd30a9bf48fd353ab02d0ba
sha256sums = 646b6de59a555b2e41960708cf4edfed571d88369d850a50e23bf4a4b17ed329
sha256sums = 610c806e595be4d56ff6cded02e8d8a3091fe211487073c02ddb5132c3b4ffb6
- sha256sums = efb09389cc67a88b16509dec3ca3fb32f1da1f4c5808b8f2e7e2f050376bf691
+ sha256sums = fc5359a9559c6194ab96f947f6d3c097cb0458d3a8e4bb634f131eb8f88c1e0f
+ sha256sums = 5d8ddf6e5c5b726e892bae2b55eb5eb01f43bd47fa2855ec38797d0598a6ea24
pkgname = marionnet-trunk
diff --git a/PKGBUILD b/PKGBUILD
index 95a63968016..4ca709053e9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -27,13 +27,15 @@ source=("http://caml.inria.fr/pub/distrib/ocaml-3.12/ocaml-3.12.1.tar.gz"
'http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/dist/lablgtk-2.14.2.tar.gz'
"https://www.marionnet.org/download/marionnet_from_scratch/mirror/ocamlbricks-trunk.tar.gz"
"https://www.marionnet.org/download/marionnet_from_scratch/mirror/marionnet-trunk.tar.gz"
- "https://raw.githubusercontent.com/JulioJu/Marionnet-trunk_ArchLinux-installer/master/Makefile.patch"
+ "https://raw.githubusercontent.com/JulioJu/Marionnet_ArchLinux_Installer/master/Makefile-trunk.patch"
+ "https://raw.githubusercontent.com/JulioJu/Marionnet_ArchLinux_Installer/master/marionnet_from_scratch-Downloader"
)
sha256sums=('4f81ab86258be0eea1507dd5338c8670490f8616249821e731f8ac1c64caa4a7'
'4981abedabdc462303f345104042c88af227ccd50fd30a9bf48fd353ab02d0ba'
'646b6de59a555b2e41960708cf4edfed571d88369d850a50e23bf4a4b17ed329'
'610c806e595be4d56ff6cded02e8d8a3091fe211487073c02ddb5132c3b4ffb6'
- 'efb09389cc67a88b16509dec3ca3fb32f1da1f4c5808b8f2e7e2f050376bf691')
+ 'fc5359a9559c6194ab96f947f6d3c097cb0458d3a8e4bb634f131eb8f88c1e0f'
+ '5d8ddf6e5c5b726e892bae2b55eb5eb01f43bd47fa2855ec38797d0598a6ea24')
install=marionnet.install
# ################
@@ -121,7 +123,7 @@ EOF
# Makefile patch
- patch Makefile < ../Makefile.patch
+ patch Makefile < ../Makefile-trunk.patch
# Configure CONFIGME
cat > CONFIGME <<EOF
@@ -230,6 +232,9 @@ EOF
optipng -quiet -fix ${pkgdir}/usr/share/marionnet/images/ico.hardware-gray.small.png
optipng -quiet -fix ${pkgdir}/usr/share/marionnet/images/ico.cable-serial-left-right.large.png
+ chmod u+x "${srcdir}/marionnet_from_scratch-Downloader"
+ mv "${srcdir}/marionnet_from_scratch-Downloader" "${pkgdir}/usr/share/marionnet"
+ echo -e "0\ntrunk" > "${pkgdir}/usr/share/marionnet/numberOfStepsPassedForDownloadMarionnetFilesystems.tmp"
}
diff --git a/marionnet-trunk.install b/marionnet-trunk.install
new file mode 100644
index 00000000000..66f90f01bd6
--- /dev/null
+++ b/marionnet-trunk.install
@@ -0,0 +1,1387 @@
+
+
+
+
+<!DOCTYPE html>
+<html lang="en" class="">
+ <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# object: http://ogp.me/ns/object# article: http://ogp.me/ns/article# profile: http://ogp.me/ns/profile#">
+ <meta charset='utf-8'>
+
+ <link crossorigin="anonymous" href="https://assets-cdn.github.com/assets/frameworks-3514e6d8825ab9f55728f0030acba498e5da5b85ebc8abc35f0f466ac9d2bdda.css" media="all" rel="stylesheet" />
+ <link crossorigin="anonymous" href="https://assets-cdn.github.com/assets/github-92b560dee7dafd08f0965a6d49e5e4298b3d856899681b308fd7809d9c35367b.css" media="all" rel="stylesheet" />
+
+
+ <link crossorigin="anonymous" href="https://assets-cdn.github.com/assets/site-c2aeff568e26c813514b4d8e4befc924e3863ac2c0ad2aa52a2c4070f1793079.css" media="all" rel="stylesheet" />
+
+
+ <link as="script" href="https://assets-cdn.github.com/assets/frameworks-ea5bbb2a837377ffde53e1099e5909c8df4d36cc5e90c05aeb3694b157df7e4d.js" rel="preload" />
+
+ <link as="script" href="https://assets-cdn.github.com/assets/github-391829145dbc07158dde112aa636b7ac8b58f7726527ce710bd56118ae1d2f57.js" rel="preload" />
+
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta http-equiv="Content-Language" content="en">
+ <meta name="viewport" content="width=device-width">
+
+
+ <title>Marionnet_ArchLinux_Installer/marionnet-trunk.install at master · JulioJu/Marionnet_ArchLinux_Installer · GitHub</title>
+ <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub">
+ <link rel="fluid-icon" href="https://github.com/fluidicon.png" title="GitHub">
+ <link rel="apple-touch-icon" href="/apple-touch-icon.png">
+ <link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png">
+ <link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png">
+ <link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png">
+ <link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png">
+ <link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png">
+ <link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png">
+ <link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png">
+ <link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png">
+ <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png">
+ <meta property="fb:app_id" content="1401488693436528">
+
+ <meta content="https://avatars1.githubusercontent.com/u/11527844?v=3&amp;s=400" name="twitter:image:src" /><meta content="@github" name="twitter:site" /><meta content="summary" name="twitter:card" /><meta content="JulioJu/Marionnet_ArchLinux_Installer" name="twitter:title" /><meta content="Marionnet_ArchLinux_Installer - Marionnet-trunk ArchLinux installer (PKGBUILD, etc) for Aur. This repository contains the Makefile pach for https://www.marionnet.org" name="twitter:description" />
+ <meta content="https://avatars1.githubusercontent.com/u/11527844?v=3&amp;s=400" property="og:image" /><meta content="GitHub" property="og:site_name" /><meta content="object" property="og:type" /><meta content="JulioJu/Marionnet_ArchLinux_Installer" property="og:title" /><meta content="https://github.com/JulioJu/Marionnet_ArchLinux_Installer" property="og:url" /><meta content="Marionnet_ArchLinux_Installer - Marionnet-trunk ArchLinux installer (PKGBUILD, etc) for Aur. This repository contains the Makefile pach for https://www.marionnet.org" property="og:description" />
+ <meta name="browser-stats-url" content="https://api.github.com/_private/browser/stats">
+ <meta name="browser-errors-url" content="https://api.github.com/_private/browser/errors">
+ <link rel="assets" href="https://assets-cdn.github.com/">
+
+ <meta name="pjax-timeout" content="1000">
+
+
+ <meta name="msapplication-TileImage" content="/windows-tile.png">
+ <meta name="msapplication-TileColor" content="#ffffff">
+ <meta name="selected-link" value="repo_source" data-pjax-transient>
+
+ <meta name="google-site-verification" content="KT5gs8h0wvaagLKAVWq8bbeNwnZZK1r1XQysX3xurLU">
+<meta name="google-site-verification" content="ZzhVyEFwb7w3e0-uOTltm8Jsck2F5StVihD0exw2fsA">
+ <meta name="google-analytics" content="UA-3769691-2">
+
+<meta content="collector.githubapp.com" name="octolytics-host" /><meta content="github" name="octolytics-app-id" /><meta content="527A6E59:8522:200D84DD:574AFB1B" name="octolytics-dimension-request_id" />
+<meta content="/&lt;user-name&gt;/&lt;repo-name&gt;/blob/show" data-pjax-transient="true" name="analytics-location" />
+
+
+
+ <meta class="js-ga-set" name="dimension1" content="Logged Out">
+
+
+
+ <meta name="hostname" content="github.com">
+ <meta name="user-login" content="">
+
+ <meta name="expected-hostname" content="github.com">
+ <meta name="js-proxy-site-detection-payload" content="NmY2ZWEzNTJiYzFkYjVmOWUwMDk3MTEwNDk3YTAyMDdjZjc4MWUxNWY4MDhlOTcwYjc1NWRiN2Y2NWJiNDM3Znx7InJlbW90ZV9hZGRyZXNzIjoiODIuMTIyLjExMC44OSIsInJlcXVlc3RfaWQiOiI1MjdBNkU1OTo4NTIyOjIwMEQ4NEREOjU3NEFGQjFCIiwidGltZXN0YW1wIjoxNDY0NTMxNzM5fQ==">
+
+
+ <link rel="mask-icon" href="https://assets-cdn.github.com/pinned-octocat.svg" color="#4078c0">
+ <link rel="icon" type="image/x-icon" href="https://assets-cdn.github.com/favicon.ico">
+
+ <meta name="html-safe-nonce" content="d7680dba9cf8cbf3956257dcb57f811dd4c40372">
+ <meta content="50c37226faa722936705509a72d0eb3b921b5885" name="form-nonce" />
+
+ <meta http-equiv="x-pjax-version" content="e7cec84ad9772b41eb2a7820f7affce2">
+
+
+
+ <meta name="description" content="Marionnet_ArchLinux_Installer - Marionnet-trunk ArchLinux installer (PKGBUILD, etc) for Aur. This repository contains the Makefile pach for https://www.marionnet.org">
+ <meta name="go-import" content="github.com/JulioJu/Marionnet_ArchLinux_Installer git https://github.com/JulioJu/Marionnet_ArchLinux_Installer.git">
+
+ <meta content="11527844" name="octolytics-dimension-user_id" /><meta content="JulioJu" name="octolytics-dimension-user_login" /><meta content="59944307" name="octolytics-dimension-repository_id" /><meta content="JulioJu/Marionnet_ArchLinux_Installer" name="octolytics-dimension-repository_nwo" /><meta content="true" name="octolytics-dimension-repository_public" /><meta content="false" name="octolytics-dimension-repository_is_fork" /><meta content="59944307" name="octolytics-dimension-repository_network_root_id" /><meta content="JulioJu/Marionnet_ArchLinux_Installer" name="octolytics-dimension-repository_network_root_nwo" />
+ <link href="https://github.com/JulioJu/Marionnet_ArchLinux_Installer/commits/master.atom" rel="alternate" title="Recent Commits to Marionnet_ArchLinux_Installer:master" type="application/atom+xml">
+
+
+ <link rel="canonical" href="https://github.com/JulioJu/Marionnet_ArchLinux_Installer/blob/master/marionnet-trunk.install" data-pjax-transient>
+ </head>
+
+
+ <body class="logged-out env-production vis-public page-blob">
+ <div id="js-pjax-loader-bar" class="pjax-loader-bar"></div>
+ <a href="#start-of-content" tabindex="1" class="accessibility-aid js-skip-to-content">Skip to content</a>
+
+
+
+
+
+
+
+ <header class="site-header js-details-container" role="banner">
+ <div class="container-responsive">
+ <a class="header-logo-invertocat" href="https://github.com/" aria-label="Homepage" data-ga-click="(Logged out) Header, go to homepage, icon:logo-wordmark">
+ <svg aria-hidden="true" class="octicon octicon-mark-github" height="32" version="1.1" viewBox="0 0 16 16" width="32"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59 0.4 0.07 0.55-0.17 0.55-0.38 0-0.19-0.01-0.82-0.01-1.49-2.01 0.37-2.53-0.49-2.69-0.94-0.09-0.23-0.48-0.94-0.82-1.13-0.28-0.15-0.68-0.52-0.01-0.53 0.63-0.01 1.08 0.58 1.23 0.82 0.72 1.21 1.87 0.87 2.33 0.66 0.07-0.52 0.28-0.87 0.51-1.07-1.78-0.2-3.64-0.89-3.64-3.95 0-0.87 0.31-1.59 0.82-2.15-0.08-0.2-0.36-1.02 0.08-2.12 0 0 0.67-0.21 2.2 0.82 0.64-0.18 1.32-0.27 2-0.27 0.68 0 1.36 0.09 2 0.27 1.53-1.04 2.2-0.82 2.2-0.82 0.44 1.1 0.16 1.92 0.08 2.12 0.51 0.56 0.82 1.27 0.82 2.15 0 3.07-1.87 3.75-3.65 3.95 0.29 0.25 0.54 0.73 0.54 1.48 0 1.07-0.01 1.93-0.01 2.2 0 0.21 0.15 0.46 0.55 0.38C13.71 14.53 16 11.53 16 8 16 3.58 12.42 0 8 0z"></path></svg>
+ </a>
+
+ <button class="btn-link right site-header-toggle js-details-target" type="button" aria-label="Toggle navigation">
+ <svg aria-hidden="true" class="octicon octicon-three-bars" height="24" version="1.1" viewBox="0 0 12 16" width="18"><path d="M11.41 9H0.59c-0.59 0-0.59-0.41-0.59-1s0-1 0.59-1h10.81c0.59 0 0.59 0.41 0.59 1s0 1-0.59 1z m0-4H0.59c-0.59 0-0.59-0.41-0.59-1s0-1 0.59-1h10.81c0.59 0 0.59 0.41 0.59 1s0 1-0.59 1zM0.59 11h10.81c0.59 0 0.59 0.41 0.59 1s0 1-0.59 1H0.59c-0.59 0-0.59-0.41-0.59-1s0-1 0.59-1z"></path></svg>
+ </button>
+
+ <div class="site-header-menu">
+ <nav class="site-header-nav site-header-nav-main">
+ <a href="/personal" class="js-selected-navigation-item nav-item nav-item-personal" data-ga-click="Header, click, Nav menu - item:personal" data-selected-links="/personal /personal">
+ Personal
+</a> <a href="/open-source" class="js-selected-navigation-item nav-item nav-item-opensource" data-ga-click="Header, click, Nav menu - item:opensource" data-selected-links="/open-source /open-source">
+ Open source
+</a> <a href="/business" class="js-selected-navigation-item nav-item nav-item-business" data-ga-click="Header, click, Nav menu - item:business" data-selected-links="/business /business/features /business/customers /business">
+ Business
+</a> <a href="/explore" class="js-selected-navigation-item nav-item nav-item-explore" data-ga-click="Header, click, Nav menu - item:explore" data-selected-links="/explore /trending /trending/developers /integrations /integrations/feature/code /integrations/feature/collaborate /integrations/feature/ship /explore">
+ Explore
+</a> </nav>
+
+ <div class="site-header-actions">
+ <a class="btn btn-primary site-header-actions-btn" href="/join?source=header-repo" data-ga-click="(Logged out) Header, clicked Sign up, text:sign-up">Sign up</a>
+ <a class="btn site-header-actions-btn mr-2" href="/login?return_to=%2FJulioJu%2FMarionnet_ArchLinux_Installer%2Fblob%2Fmaster%2Fmarionnet-trunk.install" data-ga-click="(Logged out) Header, clicked Sign in, text:sign-in">Sign in</a>
+ </div>
+
+ <nav class="site-header-nav site-header-nav-secondary">
+ <a class="nav-item" href="/pricing">Pricing</a>
+ <a class="nav-item" href="/blog">Blog</a>
+ <a class="nav-item" href="https://help.github.com">Support</a>
+ <a class="nav-item header-search-link" href="https://github.com/search">Search GitHub</a>
+ <div class="header-search scoped-search site-scoped-search js-site-search" role="search">
+ <!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="/JulioJu/Marionnet_ArchLinux_Installer/search" class="js-site-search-form" data-scoped-search-url="/JulioJu/Marionnet_ArchLinux_Installer/search" data-unscoped-search-url="/search" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>
+ <label class="form-control header-search-wrapper js-chromeless-input-container">
+ <div class="header-search-scope">This repository</div>
+ <input type="text"
+ class="form-control header-search-input js-site-search-focus js-site-search-field is-clearable"
+ data-hotkey="s"
+ name="q"
+ placeholder="Search"
+ aria-label="Search this repository"
+ data-unscoped-placeholder="Search GitHub"
+ data-scoped-placeholder="Search"
+ tabindex="1"
+ autocapitalize="off">
+ </label>
+</form></div>
+
+ </nav>
+ </div>
+ </div>
+</header>
+
+
+
+ <div id="start-of-content" class="accessibility-aid"></div>
+
+ <div id="js-flash-container">
+</div>
+
+
+ <div role="main" class="main-content">
+ <div itemscope itemtype="http://schema.org/SoftwareSourceCode">
+ <div id="js-repo-pjax-container" data-pjax-container>
+
+<div class="pagehead repohead instapaper_ignore readability-menu experiment-repo-nav">
+ <div class="container repohead-details-container">
+
+
+
+<ul class="pagehead-actions">
+
+ <li>
+ <a href="/login?return_to=%2FJulioJu%2FMarionnet_ArchLinux_Installer"
+ class="btn btn-sm btn-with-count tooltipped tooltipped-n"
+ aria-label="You must be signed in to watch a repository" rel="nofollow">
+ <svg aria-hidden="true" class="octicon octicon-eye" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path d="M8.06 2C3 2 0 8 0 8s3 6 8.06 6c4.94 0 7.94-6 7.94-6S13 2 8.06 2z m-0.06 10c-2.2 0-4-1.78-4-4 0-2.2 1.8-4 4-4 2.22 0 4 1.8 4 4 0 2.22-1.78 4-4 4z m2-4c0 1.11-0.89 2-2 2s-2-0.89-2-2 0.89-2 2-2 2 0.89 2 2z"></path></svg>
+ Watch
+ </a>
+ <a class="social-count" href="/JulioJu/Marionnet_ArchLinux_Installer/watchers">
+ 1
+ </a>
+
+ </li>
+
+ <li>
+ <a href="/login?return_to=%2FJulioJu%2FMarionnet_ArchLinux_Installer"
+ class="btn btn-sm btn-with-count tooltipped tooltipped-n"
+ aria-label="You must be signed in to star a repository" rel="nofollow">
+ <svg aria-hidden="true" class="octicon octicon-star" height="16" version="1.1" viewBox="0 0 14 16" width="14"><path d="M14 6l-4.9-0.64L7 1 4.9 5.36 0 6l3.6 3.26L2.67 14l4.33-2.33 4.33 2.33L10.4 9.26 14 6z"></path></svg>
+ Star
+ </a>
+
+ <a class="social-count js-social-count" href="/JulioJu/Marionnet_ArchLinux_Installer/stargazers">
+ 0
+ </a>
+
+ </li>
+
+ <li>
+ <a href="/login?return_to=%2FJulioJu%2FMarionnet_ArchLinux_Installer"
+ class="btn btn-sm btn-with-count tooltipped tooltipped-n"
+ aria-label="You must be signed in to fork a repository" rel="nofollow">
+ <svg aria-hidden="true" class="octicon octicon-repo-forked" height="16" version="1.1" viewBox="0 0 10 16" width="10"><path d="M8 1c-1.11 0-2 0.89-2 2 0 0.73 0.41 1.38 1 1.72v1.28L5 8 3 6v-1.28c0.59-0.34 1-0.98 1-1.72 0-1.11-0.89-2-2-2S0 1.89 0 3c0 0.73 0.41 1.38 1 1.72v1.78l3 3v1.78c-0.59 0.34-1 0.98-1 1.72 0 1.11 0.89 2 2 2s2-0.89 2-2c0-0.73-0.41-1.38-1-1.72V9.5l3-3V4.72c0.59-0.34 1-0.98 1-1.72 0-1.11-0.89-2-2-2zM2 4.2c-0.66 0-1.2-0.55-1.2-1.2s0.55-1.2 1.2-1.2 1.2 0.55 1.2 1.2-0.55 1.2-1.2 1.2z m3 10c-0.66 0-1.2-0.55-1.2-1.2s0.55-1.2 1.2-1.2 1.2 0.55 1.2 1.2-0.55 1.2-1.2 1.2z m3-10c-0.66 0-1.2-0.55-1.2-1.2s0.55-1.2 1.2-1.2 1.2 0.55 1.2 1.2-0.55 1.2-1.2 1.2z"></path></svg>
+ Fork
+ </a>
+
+ <a href="/JulioJu/Marionnet_ArchLinux_Installer/network" class="social-count">
+ 0
+ </a>
+ </li>
+</ul>
+
+ <h1 class="entry-title public ">
+ <svg aria-hidden="true" class="octicon octicon-repo" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M4 9h-1v-1h1v1z m0-3h-1v1h1v-1z m0-2h-1v1h1v-1z m0-2h-1v1h1v-1z m8-1v12c0 0.55-0.45 1-1 1H6v2l-1.5-1.5-1.5 1.5V14H1c-0.55 0-1-0.45-1-1V1C0 0.45 0.45 0 1 0h10c0.55 0 1 0.45 1 1z m-1 10H1v2h2v-1h3v1h5V11z m0-10H2v9h9V1z"></path></svg>
+ <span class="author" itemprop="author"><a href="/JulioJu" class="url fn" rel="author">JulioJu</a></span><!--
+--><span class="path-divider">/</span><!--
+--><strong itemprop="name"><a href="/JulioJu/Marionnet_ArchLinux_Installer" data-pjax="#js-repo-pjax-container">Marionnet_ArchLinux_Installer</a></strong>
+
+</h1>
+
+ </div>
+ <div class="container">
+
+<nav class="reponav js-repo-nav js-sidenav-container-pjax"
+ itemscope
+ itemtype="http://schema.org/BreadcrumbList"
+ role="navigation"
+ data-pjax="#js-repo-pjax-container">
+
+ <span itemscope itemtype="http://schema.org/ListItem" itemprop="itemListElement">
+ <a href="/JulioJu/Marionnet_ArchLinux_Installer" aria-selected="true" class="js-selected-navigation-item selected reponav-item" data-hotkey="g c" data-selected-links="repo_source repo_downloads repo_commits repo_releases repo_tags repo_branches /JulioJu/Marionnet_ArchLinux_Installer" itemprop="url">
+ <svg aria-hidden="true" class="octicon octicon-code" height="16" version="1.1" viewBox="0 0 14 16" width="14"><path d="M9.5 3l-1.5 1.5 3.5 3.5L8 11.5l1.5 1.5 4.5-5L9.5 3zM4.5 3L0 8l4.5 5 1.5-1.5L2.5 8l3.5-3.5L4.5 3z"></path></svg>
+ <span itemprop="name">Code</span>
+ <meta itemprop="position" content="1">
+</a> </span>
+
+ <span itemscope itemtype="http://schema.org/ListItem" itemprop="itemListElement">
+ <a href="/JulioJu/Marionnet_ArchLinux_Installer/issues" class="js-selected-navigation-item reponav-item" data-hotkey="g i" data-selected-links="repo_issues repo_labels repo_milestones /JulioJu/Marionnet_ArchLinux_Installer/issues" itemprop="url">
+ <svg aria-hidden="true" class="octicon octicon-issue-opened" height="16" version="1.1" viewBox="0 0 14 16" width="14"><path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v5h2V4z m0 6H6v2h2V10z"></path></svg>
+ <span itemprop="name">Issues</span>
+ <span class="counter">0</span>
+ <meta itemprop="position" content="2">
+</a> </span>
+
+ <span itemscope itemtype="http://schema.org/ListItem" itemprop="itemListElement">
+ <a href="/JulioJu/Marionnet_ArchLinux_Installer/pulls" class="js-selected-navigation-item reponav-item" data-hotkey="g p" data-selected-links="repo_pulls /JulioJu/Marionnet_ArchLinux_Installer/pulls" itemprop="url">
+ <svg aria-hidden="true" class="octicon octicon-git-pull-request" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M11 11.28c0-1.73 0-6.28 0-6.28-0.03-0.78-0.34-1.47-0.94-2.06s-1.28-0.91-2.06-0.94c0 0-1.02 0-1 0V0L4 3l3 3V4h1c0.27 0.02 0.48 0.11 0.69 0.31s0.3 0.42 0.31 0.69v6.28c-0.59 0.34-1 0.98-1 1.72 0 1.11 0.89 2 2 2s2-0.89 2-2c0-0.73-0.41-1.38-1-1.72z m-1 2.92c-0.66 0-1.2-0.55-1.2-1.2s0.55-1.2 1.2-1.2 1.2 0.55 1.2 1.2-0.55 1.2-1.2 1.2zM4 3c0-1.11-0.89-2-2-2S0 1.89 0 3c0 0.73 0.41 1.38 1 1.72 0 1.55 0 5.56 0 6.56-0.59 0.34-1 0.98-1 1.72 0 1.11 0.89 2 2 2s2-0.89 2-2c0-0.73-0.41-1.38-1-1.72V4.72c0.59-0.34 1-0.98 1-1.72z m-0.8 10c0 0.66-0.55 1.2-1.2 1.2s-1.2-0.55-1.2-1.2 0.55-1.2 1.2-1.2 1.2 0.55 1.2 1.2z m-1.2-8.8c-0.66 0-1.2-0.55-1.2-1.2s0.55-1.2 1.2-1.2 1.2 0.55 1.2 1.2-0.55 1.2-1.2 1.2z"></path></svg>
+ <span itemprop="name">Pull requests</span>
+ <span class="counter">0</span>
+ <meta itemprop="position" content="3">
+</a> </span>
+
+
+
+ <a href="/JulioJu/Marionnet_ArchLinux_Installer/pulse" class="js-selected-navigation-item reponav-item" data-selected-links="pulse /JulioJu/Marionnet_ArchLinux_Installer/pulse">
+ <svg aria-hidden="true" class="octicon octicon-pulse" height="16" version="1.1" viewBox="0 0 14 16" width="14"><path d="M11.5 8L8.8 5.4 6.6 8.5 5.5 1.6 2.38 8H0V10h3.6L4.5 8.2l0.9 5.4L9 8.5l1.6 1.5H14V8H11.5z"></path></svg>
+ Pulse
+</a>
+ <a href="/JulioJu/Marionnet_ArchLinux_Installer/graphs" class="js-selected-navigation-item reponav-item" data-selected-links="repo_graphs repo_contributors /JulioJu/Marionnet_ArchLinux_Installer/graphs">
+ <svg aria-hidden="true" class="octicon octicon-graph" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path d="M16 14v1H0V0h1v14h15z m-11-1H3V8h2v5z m4 0H7V3h2v10z m4 0H11V6h2v7z"></path></svg>
+ Graphs
+</a>
+
+</nav>
+
+ </div>
+</div>
+
+<div class="container new-discussion-timeline experiment-repo-nav">
+ <div class="repository-content">
+
+
+
+<a href="/JulioJu/Marionnet_ArchLinux_Installer/blob/eba1b10673e13872cd31c241f5d7b64f0694a862/marionnet-trunk.install" class="hidden js-permalink-shortcut" data-hotkey="y">Permalink</a>
+
+<!-- blob contrib key: blob_contributors:v21:63a0f16aaffca4071628925850448811 -->
+
+<div class="file-navigation js-zeroclipboard-container">
+
+<div class="select-menu branch-select-menu js-menu-container js-select-menu left">
+ <button class="btn btn-sm select-menu-button js-menu-target css-truncate" data-hotkey="w"
+ title="master"
+ type="button" aria-label="Switch branches or tags" tabindex="0" aria-haspopup="true">
+ <i>Branch:</i>
+ <span class="js-select-button css-truncate-target">master</span>
+ </button>
+
+ <div class="select-menu-modal-holder js-menu-content js-navigation-container" data-pjax aria-hidden="true">
+
+ <div class="select-menu-modal">
+ <div class="select-menu-header">
+ <svg aria-label="Close" class="octicon octicon-x js-menu-close" height="16" role="img" version="1.1" viewBox="0 0 12 16" width="12"><path d="M7.48 8l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75-1.48-1.48 3.75-3.75L0.77 4.25l1.48-1.48 3.75 3.75 3.75-3.75 1.48 1.48-3.75 3.75z"></path></svg>
+ <span class="select-menu-title">Switch branches/tags</span>
+ </div>
+
+ <div class="select-menu-filters">
+ <div class="select-menu-text-filter">
+ <input type="text" aria-label="Filter branches/tags" id="context-commitish-filter-field" class="form-control js-filterable-field js-navigation-enable" placeholder="Filter branches/tags">
+ </div>
+ <div class="select-menu-tabs">
+ <ul>
+ <li class="select-menu-tab">
+ <a href="#" data-tab-filter="branches" data-filter-placeholder="Filter branches/tags" class="js-select-menu-tab" role="tab">Branches</a>
+ </li>
+ <li class="select-menu-tab">
+ <a href="#" data-tab-filter="tags" data-filter-placeholder="Find a tag…" class="js-select-menu-tab" role="tab">Tags</a>
+ </li>
+ </ul>
+ </div>
+ </div>
+
+ <div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket" data-tab-filter="branches" role="menu">
+
+ <div data-filterable-for="context-commitish-filter-field" data-filterable-type="substring">
+
+
+ <a class="select-menu-item js-navigation-item js-navigation-open selected"
+ href="/JulioJu/Marionnet_ArchLinux_Installer/blob/master/marionnet-trunk.install"
+ data-name="master"
+ data-skip-pjax="true"
+ rel="nofollow">
+ <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
+ <span class="select-menu-item-text css-truncate-target js-select-menu-filter-text" title="master">
+ master
+ </span>
+ </a>
+ </div>
+
+ <div class="select-menu-no-results">Nothing to show</div>
+ </div>
+
+ <div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket" data-tab-filter="tags">
+ <div data-filterable-for="context-commitish-filter-field" data-filterable-type="substring">
+
+
+ </div>
+
+ <div class="select-menu-no-results">Nothing to show</div>
+ </div>
+
+ </div>
+ </div>
+</div>
+
+ <div class="btn-group right">
+ <a href="/JulioJu/Marionnet_ArchLinux_Installer/find/master"
+ class="js-pjax-capture-input btn btn-sm"
+ data-pjax
+ data-hotkey="t">
+ Find file
+ </a>
+ <button aria-label="Copy file path to clipboard" class="js-zeroclipboard btn btn-sm zeroclipboard-button tooltipped tooltipped-s" data-copied-hint="Copied!" type="button">Copy path</button>
+ </div>
+ <div class="breadcrumb js-zeroclipboard-target">
+ <span class="repo-root js-repo-root"><span class="js-path-segment"><a href="/JulioJu/Marionnet_ArchLinux_Installer"><span>Marionnet_ArchLinux_Installer</span></a></span></span><span class="separator">/</span><strong class="final-path">marionnet-trunk.install</strong>
+ </div>
+</div>
+
+
+ <div class="commit-tease">
+ <span class="right">
+ <a class="commit-tease-sha" href="/JulioJu/Marionnet_ArchLinux_Installer/commit/3cdd56d9b2c48b8e47d9d2d3ec9b2a10a6cef431" data-pjax>
+ 3cdd56d
+ </a>
+ <relative-time datetime="2016-05-29T13:52:51Z">May 29, 2016</relative-time>
+ </span>
+ <div>
+ <img alt="@JulioJu" class="avatar" height="20" src="https://avatars0.githubusercontent.com/u/11527844?v=3&amp;s=40" width="20" />
+ <a href="/JulioJu" class="user-mention" rel="author">JulioJu</a>
+ <a href="/JulioJu/Marionnet_ArchLinux_Installer/commit/3cdd56d9b2c48b8e47d9d2d3ec9b2a10a6cef431" class="message" data-pjax="true" title="Initial commit">Initial commit</a>
+ </div>
+
+ <div class="commit-tease-contributors">
+ <button type="button" class="btn-link muted-link contributors-toggle" data-facebox="#blob_contributors_box">
+ <strong>1</strong>
+ contributor
+ </button>
+
+ </div>
+
+ <div id="blob_contributors_box" style="display:none">
+ <h2 class="facebox-header" data-facebox-id="facebox-header">Users who have contributed to this file</h2>
+ <ul class="facebox-user-list" data-facebox-id="facebox-description">
+ <li class="facebox-user-list-item">
+ <img alt="@JulioJu" height="24" src="https://avatars2.githubusercontent.com/u/11527844?v=3&amp;s=48" width="24" />
+ <a href="/JulioJu">JulioJu</a>
+ </li>
+ </ul>
+ </div>
+ </div>
+
+<div class="file">
+ <div class="file-header">
+ <div class="file-actions">
+
+ <div class="btn-group">
+ <a href="/JulioJu/Marionnet_ArchLinux_Installer/raw/master/marionnet-trunk.install" class="btn btn-sm " id="raw-url">Raw</a>
+ <a href="/JulioJu/Marionnet_ArchLinux_Installer/blame/master/marionnet-trunk.install" class="btn btn-sm js-update-url-with-hash">Blame</a>
+ <a href="/JulioJu/Marionnet_ArchLinux_Installer/commits/master/marionnet-trunk.install" class="btn btn-sm " rel="nofollow">History</a>
+ </div>
+
+
+ <button type="button" class="btn-octicon disabled tooltipped tooltipped-nw"
+ aria-label="You must be signed in to make or propose changes">
+ <svg aria-hidden="true" class="octicon octicon-pencil" height="16" version="1.1" viewBox="0 0 14 16" width="14"><path d="M0 12v3h3l8-8-3-3L0 12z m3 2H1V12h1v1h1v1z m10.3-9.3l-1.3 1.3-3-3 1.3-1.3c0.39-0.39 1.02-0.39 1.41 0l1.59 1.59c0.39 0.39 0.39 1.02 0 1.41z"></path></svg>
+ </button>
+ <button type="button" class="btn-octicon btn-octicon-danger disabled tooltipped tooltipped-nw"
+ aria-label="You must be signed in to make or propose changes">
+ <svg aria-hidden="true" class="octicon octicon-trashcan" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M10 2H8c0-0.55-0.45-1-1-1H4c-0.55 0-1 0.45-1 1H1c-0.55 0-1 0.45-1 1v1c0 0.55 0.45 1 1 1v9c0 0.55 0.45 1 1 1h7c0.55 0 1-0.45 1-1V5c0.55 0 1-0.45 1-1v-1c0-0.55-0.45-1-1-1z m-1 12H2V5h1v8h1V5h1v8h1V5h1v8h1V5h1v9z m1-10H1v-1h9v1z"></path></svg>
+ </button>
+ </div>
+
+ <div class="file-info">
+ 210 lines (176 sloc)
+ <span class="file-info-divider"></span>
+ 7 KB
+ </div>
+</div>
+
+
+
+ <div itemprop="text" class="blob-wrapper data type-shell">
+ <table class="highlight tab-size js-file-line-container" data-tab-size="8">
+ <tr>
+ <td id="L1" class="blob-num js-line-number" data-line-number="1"></td>
+ <td id="LC1" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L2" class="blob-num js-line-number" data-line-number="2"></td>
+ <td id="LC2" class="blob-code blob-code-inner js-file-line"><span class="pl-c"># Adapted from :</span></td>
+ </tr>
+ <tr>
+ <td id="L3" class="blob-num js-line-number" data-line-number="3"></td>
+ <td id="LC3" class="blob-code blob-code-inner js-file-line"><span class="pl-c"># http://bazaar.launchpad.net/~marionnet-drivers/marionnet/trunk/view/head:/useful-scripts/marionnet_from_scratch</span></td>
+ </tr>
+ <tr>
+ <td id="L4" class="blob-num js-line-number" data-line-number="4"></td>
+ <td id="LC4" class="blob-code blob-code-inner js-file-line"><span class="pl-c"># (LGPL)</span></td>
+ </tr>
+ <tr>
+ <td id="L5" class="blob-num js-line-number" data-line-number="5"></td>
+ <td id="LC5" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L6" class="blob-num js-line-number" data-line-number="6"></td>
+ <td id="LC6" class="blob-code blob-code-inner js-file-line"><span class="pl-en">post_install</span> () {</td>
+ </tr>
+ <tr>
+ <td id="L7" class="blob-num js-line-number" data-line-number="7"></td>
+ <td id="LC7" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L8" class="blob-num js-line-number" data-line-number="8"></td>
+ <td id="LC8" class="blob-code blob-code-inner js-file-line"><span class="pl-c1">echo</span> -e <span class="pl-s"><span class="pl-pds">&quot;</span>* Marionnet installation completed\n\n<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L9" class="blob-num js-line-number" data-line-number="9"></td>
+ <td id="LC9" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L10" class="blob-num js-line-number" data-line-number="10"></td>
+ <td id="LC10" class="blob-code blob-code-inner js-file-line"><span class="pl-c1">echo</span> -e <span class="pl-s"><span class="pl-pds">&quot;</span>Post installation hook<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L11" class="blob-num js-line-number" data-line-number="11"></td>
+ <td id="LC11" class="blob-code blob-code-inner js-file-line"><span class="pl-c1">echo</span> -e <span class="pl-s"><span class="pl-pds">&quot;</span>——————————————————————\n<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L12" class="blob-num js-line-number" data-line-number="12"></td>
+ <td id="LC12" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L13" class="blob-num js-line-number" data-line-number="13"></td>
+ <td id="LC13" class="blob-code blob-code-inner js-file-line"><span class="pl-c"># =============================================================</span></td>
+ </tr>
+ <tr>
+ <td id="L14" class="blob-num js-line-number" data-line-number="14"></td>
+ <td id="LC14" class="blob-code blob-code-inner js-file-line"><span class="pl-c"># Adjust X -nolisten tcp</span></td>
+ </tr>
+ <tr>
+ <td id="L15" class="blob-num js-line-number" data-line-number="15"></td>
+ <td id="LC15" class="blob-code blob-code-inner js-file-line"><span class="pl-c"># =============================================================</span></td>
+ </tr>
+ <tr>
+ <td id="L16" class="blob-num js-line-number" data-line-number="16"></td>
+ <td id="LC16" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L17" class="blob-num js-line-number" data-line-number="17"></td>
+ <td id="LC17" class="blob-code blob-code-inner js-file-line"><span class="pl-c"># Here $SUDO_OR_NOTHING is null</span></td>
+ </tr>
+ <tr>
+ <td id="L18" class="blob-num js-line-number" data-line-number="18"></td>
+ <td id="LC18" class="blob-code blob-code-inner js-file-line">tmpfile=<span class="pl-s"><span class="pl-pds">$(</span>mktemp /tmp/marionnetInstallTmpXXXXXXX<span class="pl-pds">)</span></span></td>
+ </tr>
+ <tr>
+ <td id="L19" class="blob-num js-line-number" data-line-number="19"></td>
+ <td id="LC19" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L20" class="blob-num js-line-number" data-line-number="20"></td>
+ <td id="LC20" class="blob-code blob-code-inner js-file-line"><span class="pl-k">function</span> <span class="pl-en">remove_nolisten_assignment_from</span> {</td>
+ </tr>
+ <tr>
+ <td id="L21" class="blob-num js-line-number" data-line-number="21"></td>
+ <td id="LC21" class="blob-code blob-code-inner js-file-line"><span class="pl-c"># global SUDO_OR_NOTHING</span></td>
+ </tr>
+ <tr>
+ <td id="L22" class="blob-num js-line-number" data-line-number="22"></td>
+ <td id="LC22" class="blob-code blob-code-inner js-file-line"><span class="pl-k">local</span> i=<span class="pl-smi">$1</span></td>
+ </tr>
+ <tr>
+ <td id="L23" class="blob-num js-line-number" data-line-number="23"></td>
+ <td id="LC23" class="blob-code blob-code-inner js-file-line"><span class="pl-smi">$SUDO_OR_NOTHING</span> sed -i -e <span class="pl-s"><span class="pl-pds">&#39;</span>s/\(^[a-ZA-Z0-9]*[=].*[-]nolisten tcp.*\)$/#\1\n\1/g<span class="pl-pds">&#39;</span></span> <span class="pl-smi">$i</span></td>
+ </tr>
+ <tr>
+ <td id="L24" class="blob-num js-line-number" data-line-number="24"></td>
+ <td id="LC24" class="blob-code blob-code-inner js-file-line"><span class="pl-smi">$SUDO_OR_NOTHING</span> sed -i -e <span class="pl-s"><span class="pl-pds">&#39;</span>s/\(^[a-ZA-Z0-9]*[=].*\)[-]nolisten tcp\(.*\)$/\1 \2/g<span class="pl-pds">&#39;</span></span> <span class="pl-smi">$i</span></td>
+ </tr>
+ <tr>
+ <td id="L25" class="blob-num js-line-number" data-line-number="25"></td>
+ <td id="LC25" class="blob-code blob-code-inner js-file-line">}</td>
+ </tr>
+ <tr>
+ <td id="L26" class="blob-num js-line-number" data-line-number="26"></td>
+ <td id="LC26" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L27" class="blob-num js-line-number" data-line-number="27"></td>
+ <td id="LC27" class="blob-code blob-code-inner js-file-line"><span class="pl-k">function</span> <span class="pl-en">remove_nolisten_X_or_startx_actuals_from</span> {</td>
+ </tr>
+ <tr>
+ <td id="L28" class="blob-num js-line-number" data-line-number="28"></td>
+ <td id="LC28" class="blob-code blob-code-inner js-file-line"><span class="pl-c"># global SUDO_OR_NOTHING</span></td>
+ </tr>
+ <tr>
+ <td id="L29" class="blob-num js-line-number" data-line-number="29"></td>
+ <td id="LC29" class="blob-code blob-code-inner js-file-line"><span class="pl-k">local</span> i=<span class="pl-smi">$1</span></td>
+ </tr>
+ <tr>
+ <td id="L30" class="blob-num js-line-number" data-line-number="30"></td>
+ <td id="LC30" class="blob-code blob-code-inner js-file-line"><span class="pl-smi">$SUDO_OR_NOTHING</span> sed -i -e <span class="pl-s"><span class="pl-pds">&#39;</span>s/\(^[a-ZA-Z0-9/: ]*X.*\)[-]nolisten tcp\(.*\)$/\1\2/g<span class="pl-pds">&#39;</span></span> <span class="pl-smi">$i</span></td>
+ </tr>
+ <tr>
+ <td id="L31" class="blob-num js-line-number" data-line-number="31"></td>
+ <td id="LC31" class="blob-code blob-code-inner js-file-line"><span class="pl-smi">$SUDO_OR_NOTHING</span> sed -i -e <span class="pl-s"><span class="pl-pds">&#39;</span>s/\(^[a-ZA-Z0-9/: ]*startx.*\)[-]nolisten tcp\(.*\)$/\1\2/g<span class="pl-pds">&#39;</span></span> <span class="pl-smi">$i</span></td>
+ </tr>
+ <tr>
+ <td id="L32" class="blob-num js-line-number" data-line-number="32"></td>
+ <td id="LC32" class="blob-code blob-code-inner js-file-line">}</td>
+ </tr>
+ <tr>
+ <td id="L33" class="blob-num js-line-number" data-line-number="33"></td>
+ <td id="LC33" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L34" class="blob-num js-line-number" data-line-number="34"></td>
+ <td id="LC34" class="blob-code blob-code-inner js-file-line"><span class="pl-k">function</span> <span class="pl-en">remove_DisallowTCP_from</span> {</td>
+ </tr>
+ <tr>
+ <td id="L35" class="blob-num js-line-number" data-line-number="35"></td>
+ <td id="LC35" class="blob-code blob-code-inner js-file-line"><span class="pl-c"># global SUDO_OR_NOTHING</span></td>
+ </tr>
+ <tr>
+ <td id="L36" class="blob-num js-line-number" data-line-number="36"></td>
+ <td id="LC36" class="blob-code blob-code-inner js-file-line"><span class="pl-k">local</span> i=<span class="pl-smi">$1</span></td>
+ </tr>
+ <tr>
+ <td id="L37" class="blob-num js-line-number" data-line-number="37"></td>
+ <td id="LC37" class="blob-code blob-code-inner js-file-line"><span class="pl-smi">$SUDO_OR_NOTHING</span> sed -i -e <span class="pl-s"><span class="pl-pds">&#39;</span>s/\(^DisallowTCP=true.*\)$/#\1\nDisallowTCP=false/g<span class="pl-pds">&#39;</span></span> <span class="pl-smi">$i</span></td>
+ </tr>
+ <tr>
+ <td id="L38" class="blob-num js-line-number" data-line-number="38"></td>
+ <td id="LC38" class="blob-code blob-code-inner js-file-line">}</td>
+ </tr>
+ <tr>
+ <td id="L39" class="blob-num js-line-number" data-line-number="39"></td>
+ <td id="LC39" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L40" class="blob-num js-line-number" data-line-number="40"></td>
+ <td id="LC40" class="blob-code blob-code-inner js-file-line"><span class="pl-c"># Sections in file have the form &quot;[security]&quot;</span></td>
+ </tr>
+ <tr>
+ <td id="L41" class="blob-num js-line-number" data-line-number="41"></td>
+ <td id="LC41" class="blob-code blob-code-inner js-file-line"><span class="pl-k">function</span> <span class="pl-en">ensure_section_and_binding</span> {</td>
+ </tr>
+ <tr>
+ <td id="L42" class="blob-num js-line-number" data-line-number="42"></td>
+ <td id="LC42" class="blob-code blob-code-inner js-file-line">[[ <span class="pl-smi">$#</span> <span class="pl-k">-ge</span> 3 ]] <span class="pl-k">||</span> <span class="pl-k">return</span> 1</td>
+ </tr>
+ <tr>
+ <td id="L43" class="blob-num js-line-number" data-line-number="43"></td>
+ <td id="LC43" class="blob-code blob-code-inner js-file-line"><span class="pl-k">local</span> SECTION=<span class="pl-smi">$1</span> <span class="pl-c"># ex: security</span></td>
+ </tr>
+ <tr>
+ <td id="L44" class="blob-num js-line-number" data-line-number="44"></td>
+ <td id="LC44" class="blob-code blob-code-inner js-file-line"><span class="pl-k">local</span> VARIABLE=<span class="pl-smi">$2</span> <span class="pl-c"># ex: Enable</span></td>
+ </tr>
+ <tr>
+ <td id="L45" class="blob-num js-line-number" data-line-number="45"></td>
+ <td id="LC45" class="blob-code blob-code-inner js-file-line"><span class="pl-k">local</span> VALUE=<span class="pl-smi">$3</span> <span class="pl-c"># ex: true</span></td>
+ </tr>
+ <tr>
+ <td id="L46" class="blob-num js-line-number" data-line-number="46"></td>
+ <td id="LC46" class="blob-code blob-code-inner js-file-line"><span class="pl-k">local</span> AWK_PROGRAM</td>
+ </tr>
+ <tr>
+ <td id="L47" class="blob-num js-line-number" data-line-number="47"></td>
+ <td id="LC47" class="blob-code blob-code-inner js-file-line"><span class="pl-c1">shift</span> 3</td>
+ </tr>
+ <tr>
+ <td id="L48" class="blob-num js-line-number" data-line-number="48"></td>
+ <td id="LC48" class="blob-code blob-code-inner js-file-line">AWK_PROGRAM=<span class="pl-s"><span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L49" class="blob-num js-line-number" data-line-number="49"></td>
+ <td id="LC49" class="blob-code blob-code-inner js-file-line"><span class="pl-s">BEGIN {x=0}</span></td>
+ </tr>
+ <tr>
+ <td id="L50" class="blob-num js-line-number" data-line-number="50"></td>
+ <td id="LC50" class="blob-code blob-code-inner js-file-line"><span class="pl-s">/\[<span class="pl-smi">$SECTION</span>\]/ {x=1;print;next}</span></td>
+ </tr>
+ <tr>
+ <td id="L51" class="blob-num js-line-number" data-line-number="51"></td>
+ <td id="LC51" class="blob-code blob-code-inner js-file-line"><span class="pl-s">(x==1) &amp;&amp; /<span class="pl-smi">$VARIABLE</span>=.*/ {print <span class="pl-cce">\&quot;</span><span class="pl-smi">$VARIABLE</span>=<span class="pl-smi">$VALUE</span><span class="pl-cce">\&quot;</span>; x=2; next}</span></td>
+ </tr>
+ <tr>
+ <td id="L52" class="blob-num js-line-number" data-line-number="52"></td>
+ <td id="LC52" class="blob-code blob-code-inner js-file-line"><span class="pl-s">(x==1) &amp;&amp; /\[.*\]/ {print <span class="pl-cce">\&quot;</span><span class="pl-smi">$VARIABLE</span>=<span class="pl-smi">$VALUE</span>\n<span class="pl-cce">\&quot;</span>; print; x=2; next}</span></td>
+ </tr>
+ <tr>
+ <td id="L53" class="blob-num js-line-number" data-line-number="53"></td>
+ <td id="LC53" class="blob-code blob-code-inner js-file-line"><span class="pl-s">/\[.*\]/ {print;next}</span></td>
+ </tr>
+ <tr>
+ <td id="L54" class="blob-num js-line-number" data-line-number="54"></td>
+ <td id="LC54" class="blob-code blob-code-inner js-file-line"><span class="pl-s">{print}</span></td>
+ </tr>
+ <tr>
+ <td id="L55" class="blob-num js-line-number" data-line-number="55"></td>
+ <td id="LC55" class="blob-code blob-code-inner js-file-line"><span class="pl-s"> END {if (x==0) print <span class="pl-cce">\&quot;</span>[<span class="pl-smi">$SECTION</span>]<span class="pl-cce">\&quot;</span>; if (x==0 || x==1) print <span class="pl-cce">\&quot;</span><span class="pl-smi">$VARIABLE</span>=<span class="pl-smi">$VALUE</span>\n<span class="pl-cce">\&quot;</span>;}<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L56" class="blob-num js-line-number" data-line-number="56"></td>
+ <td id="LC56" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">case</span> <span class="pl-smi">$#</span> in</td>
+ </tr>
+ <tr>
+ <td id="L57" class="blob-num js-line-number" data-line-number="57"></td>
+ <td id="LC57" class="blob-code blob-code-inner js-file-line"> 0) awk <span class="pl-s"><span class="pl-pds">&quot;</span><span class="pl-smi">$AWK_PROGRAM</span><span class="pl-pds">&quot;</span></span> ;;</td>
+ </tr>
+ <tr>
+ <td id="L58" class="blob-num js-line-number" data-line-number="58"></td>
+ <td id="LC58" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">*</span>)</td>
+ </tr>
+ <tr>
+ <td id="L59" class="blob-num js-line-number" data-line-number="59"></td>
+ <td id="LC59" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">local</span> i</td>
+ </tr>
+ <tr>
+ <td id="L60" class="blob-num js-line-number" data-line-number="60"></td>
+ <td id="LC60" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">local</span> TMPFILE=<span class="pl-s"><span class="pl-pds">$(</span>tmpfile<span class="pl-pds">)</span></span></td>
+ </tr>
+ <tr>
+ <td id="L61" class="blob-num js-line-number" data-line-number="61"></td>
+ <td id="LC61" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">for</span> <span class="pl-smi">i</span> <span class="pl-k">in</span> <span class="pl-s"><span class="pl-pds">&quot;</span><span class="pl-smi">$@</span><span class="pl-pds">&quot;</span></span><span class="pl-k">;</span> <span class="pl-k">do</span></td>
+ </tr>
+ <tr>
+ <td id="L62" class="blob-num js-line-number" data-line-number="62"></td>
+ <td id="LC62" class="blob-code blob-code-inner js-file-line"> awk <span class="pl-k">0&lt;</span><span class="pl-s"><span class="pl-pds">&quot;</span><span class="pl-smi">$i</span><span class="pl-pds">&quot;</span></span> <span class="pl-k">1&gt;</span><span class="pl-smi">$TMPFILE</span> <span class="pl-s"><span class="pl-pds">&quot;</span><span class="pl-smi">$AWK_PROGRAM</span><span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L63" class="blob-num js-line-number" data-line-number="63"></td>
+ <td id="LC63" class="blob-code blob-code-inner js-file-line"> cat <span class="pl-smi">$TMPFILE</span> <span class="pl-k">1&gt;</span><span class="pl-s"><span class="pl-pds">&quot;</span><span class="pl-smi">$i</span><span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L64" class="blob-num js-line-number" data-line-number="64"></td>
+ <td id="LC64" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">done</span></td>
+ </tr>
+ <tr>
+ <td id="L65" class="blob-num js-line-number" data-line-number="65"></td>
+ <td id="LC65" class="blob-code blob-code-inner js-file-line"> rm <span class="pl-smi">$TMPFILE</span></td>
+ </tr>
+ <tr>
+ <td id="L66" class="blob-num js-line-number" data-line-number="66"></td>
+ <td id="LC66" class="blob-code blob-code-inner js-file-line"> ;;</td>
+ </tr>
+ <tr>
+ <td id="L67" class="blob-num js-line-number" data-line-number="67"></td>
+ <td id="LC67" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">esac</span></td>
+ </tr>
+ <tr>
+ <td id="L68" class="blob-num js-line-number" data-line-number="68"></td>
+ <td id="LC68" class="blob-code blob-code-inner js-file-line">}</td>
+ </tr>
+ <tr>
+ <td id="L69" class="blob-num js-line-number" data-line-number="69"></td>
+ <td id="LC69" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L70" class="blob-num js-line-number" data-line-number="70"></td>
+ <td id="LC70" class="blob-code blob-code-inner js-file-line"><span class="pl-c"># This is needed, for instance, for ubuntu 10.10</span></td>
+ </tr>
+ <tr>
+ <td id="L71" class="blob-num js-line-number" data-line-number="71"></td>
+ <td id="LC71" class="blob-code blob-code-inner js-file-line"><span class="pl-k">function</span> <span class="pl-en">ensure_DisallowTCP_false_to_gdm_custom_dot_conf</span> {</td>
+ </tr>
+ <tr>
+ <td id="L72" class="blob-num js-line-number" data-line-number="72"></td>
+ <td id="LC72" class="blob-code blob-code-inner js-file-line"><span class="pl-c"># global SUDO_OR_NOTHING CHANGED_FILES</span></td>
+ </tr>
+ <tr>
+ <td id="L73" class="blob-num js-line-number" data-line-number="73"></td>
+ <td id="LC73" class="blob-code blob-code-inner js-file-line"><span class="pl-k">local</span> custom=<span class="pl-smi">${1<span class="pl-k">:-/</span>etc<span class="pl-k">/</span>gdm<span class="pl-k">/</span>custom.conf}</span></td>
+ </tr>
+ <tr>
+ <td id="L74" class="blob-num js-line-number" data-line-number="74"></td>
+ <td id="LC74" class="blob-code blob-code-inner js-file-line"><span class="pl-k">local</span> TMPFILE=<span class="pl-s"><span class="pl-pds">$(</span>tmpfile<span class="pl-pds">)</span></span></td>
+ </tr>
+ <tr>
+ <td id="L75" class="blob-num js-line-number" data-line-number="75"></td>
+ <td id="LC75" class="blob-code blob-code-inner js-file-line">cp <span class="pl-smi">$custom</span> <span class="pl-smi">$TMPFILE</span></td>
+ </tr>
+ <tr>
+ <td id="L76" class="blob-num js-line-number" data-line-number="76"></td>
+ <td id="LC76" class="blob-code blob-code-inner js-file-line">ensure_section_and_binding <span class="pl-s"><span class="pl-pds">&quot;</span>security<span class="pl-pds">&quot;</span></span> <span class="pl-s"><span class="pl-pds">&quot;</span>DisallowTCP<span class="pl-pds">&quot;</span></span> <span class="pl-s"><span class="pl-pds">&quot;</span>false<span class="pl-pds">&quot;</span></span> <span class="pl-smi">$TMPFILE</span></td>
+ </tr>
+ <tr>
+ <td id="L77" class="blob-num js-line-number" data-line-number="77"></td>
+ <td id="LC77" class="blob-code blob-code-inner js-file-line">ensure_section_and_binding <span class="pl-s"><span class="pl-pds">&quot;</span>xdmcp<span class="pl-pds">&quot;</span></span> <span class="pl-s"><span class="pl-pds">&quot;</span>Enable<span class="pl-pds">&quot;</span></span> <span class="pl-s"><span class="pl-pds">&quot;</span>true<span class="pl-pds">&quot;</span></span> <span class="pl-smi">$TMPFILE</span></td>
+ </tr>
+ <tr>
+ <td id="L78" class="blob-num js-line-number" data-line-number="78"></td>
+ <td id="LC78" class="blob-code blob-code-inner js-file-line"><span class="pl-k">if</span> <span class="pl-k">!</span> diff -q <span class="pl-smi">$custom</span> <span class="pl-smi">$TMPFILE</span> <span class="pl-k">&gt;</span>/dev/null<span class="pl-k">;</span> <span class="pl-k">then</span></td>
+ </tr>
+ <tr>
+ <td id="L79" class="blob-num js-line-number" data-line-number="79"></td>
+ <td id="LC79" class="blob-code blob-code-inner js-file-line"> CHANGED_FILES+=<span class="pl-s"><span class="pl-pds">&quot;</span><span class="pl-smi">$custom</span> <span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L80" class="blob-num js-line-number" data-line-number="80"></td>
+ <td id="LC80" class="blob-code blob-code-inner js-file-line"> <span class="pl-smi">$SUDO_OR_NOTHING</span> bash -c <span class="pl-s"><span class="pl-pds">&quot;</span>cat <span class="pl-smi">$TMPFILE</span> &gt;<span class="pl-smi">$custom</span><span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L81" class="blob-num js-line-number" data-line-number="81"></td>
+ <td id="LC81" class="blob-code blob-code-inner js-file-line"><span class="pl-k">fi</span></td>
+ </tr>
+ <tr>
+ <td id="L82" class="blob-num js-line-number" data-line-number="82"></td>
+ <td id="LC82" class="blob-code blob-code-inner js-file-line">}</td>
+ </tr>
+ <tr>
+ <td id="L83" class="blob-num js-line-number" data-line-number="83"></td>
+ <td id="LC83" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L84" class="blob-num js-line-number" data-line-number="84"></td>
+ <td id="LC84" class="blob-code blob-code-inner js-file-line"><span class="pl-c"># This is needed, for instance, for ubuntu 12.04</span></td>
+ </tr>
+ <tr>
+ <td id="L85" class="blob-num js-line-number" data-line-number="85"></td>
+ <td id="LC85" class="blob-code blob-code-inner js-file-line"><span class="pl-k">function</span> <span class="pl-en">ensure_xserver_allow_tcp_in_lightdm_dot_conf</span> {</td>
+ </tr>
+ <tr>
+ <td id="L86" class="blob-num js-line-number" data-line-number="86"></td>
+ <td id="LC86" class="blob-code blob-code-inner js-file-line"><span class="pl-c"># global SUDO_OR_NOTHING CHANGED_FILES</span></td>
+ </tr>
+ <tr>
+ <td id="L87" class="blob-num js-line-number" data-line-number="87"></td>
+ <td id="LC87" class="blob-code blob-code-inner js-file-line"><span class="pl-k">local</span> custom=<span class="pl-smi">${1<span class="pl-k">:-/</span>etc<span class="pl-k">/</span>lightdm<span class="pl-k">/</span>lightdm.conf}</span></td>
+ </tr>
+ <tr>
+ <td id="L88" class="blob-num js-line-number" data-line-number="88"></td>
+ <td id="LC88" class="blob-code blob-code-inner js-file-line"><span class="pl-k">local</span> TMPFILE=<span class="pl-s"><span class="pl-pds">$(</span>tmpfile<span class="pl-pds">)</span></span></td>
+ </tr>
+ <tr>
+ <td id="L89" class="blob-num js-line-number" data-line-number="89"></td>
+ <td id="LC89" class="blob-code blob-code-inner js-file-line">cp <span class="pl-smi">$custom</span> <span class="pl-smi">$TMPFILE</span></td>
+ </tr>
+ <tr>
+ <td id="L90" class="blob-num js-line-number" data-line-number="90"></td>
+ <td id="LC90" class="blob-code blob-code-inner js-file-line">ensure_section_and_binding <span class="pl-s"><span class="pl-pds">&quot;</span>SeatDefaults<span class="pl-pds">&quot;</span></span> <span class="pl-s"><span class="pl-pds">&quot;</span>xserver-allow-tcp<span class="pl-pds">&quot;</span></span> <span class="pl-s"><span class="pl-pds">&quot;</span>true<span class="pl-pds">&quot;</span></span> <span class="pl-smi">$TMPFILE</span></td>
+ </tr>
+ <tr>
+ <td id="L91" class="blob-num js-line-number" data-line-number="91"></td>
+ <td id="LC91" class="blob-code blob-code-inner js-file-line"><span class="pl-k">if</span> <span class="pl-k">!</span> diff -q <span class="pl-smi">$custom</span> <span class="pl-smi">$TMPFILE</span> <span class="pl-k">&gt;</span>/dev/null<span class="pl-k">;</span> <span class="pl-k">then</span></td>
+ </tr>
+ <tr>
+ <td id="L92" class="blob-num js-line-number" data-line-number="92"></td>
+ <td id="LC92" class="blob-code blob-code-inner js-file-line"> CHANGED_FILES+=<span class="pl-s"><span class="pl-pds">&quot;</span><span class="pl-smi">$custom</span> <span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L93" class="blob-num js-line-number" data-line-number="93"></td>
+ <td id="LC93" class="blob-code blob-code-inner js-file-line"> <span class="pl-smi">$SUDO_OR_NOTHING</span> bash -c <span class="pl-s"><span class="pl-pds">&quot;</span>cat <span class="pl-smi">$TMPFILE</span> &gt;<span class="pl-smi">$custom</span><span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L94" class="blob-num js-line-number" data-line-number="94"></td>
+ <td id="LC94" class="blob-code blob-code-inner js-file-line"><span class="pl-k">fi</span></td>
+ </tr>
+ <tr>
+ <td id="L95" class="blob-num js-line-number" data-line-number="95"></td>
+ <td id="LC95" class="blob-code blob-code-inner js-file-line">}</td>
+ </tr>
+ <tr>
+ <td id="L96" class="blob-num js-line-number" data-line-number="96"></td>
+ <td id="LC96" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L97" class="blob-num js-line-number" data-line-number="97"></td>
+ <td id="LC97" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L98" class="blob-num js-line-number" data-line-number="98"></td>
+ <td id="LC98" class="blob-code blob-code-inner js-file-line"><span class="pl-k">function</span> <span class="pl-en">apply_all_filters</span> {</td>
+ </tr>
+ <tr>
+ <td id="L99" class="blob-num js-line-number" data-line-number="99"></td>
+ <td id="LC99" class="blob-code blob-code-inner js-file-line"><span class="pl-c"># global CHANGED_FILES</span></td>
+ </tr>
+ <tr>
+ <td id="L100" class="blob-num js-line-number" data-line-number="100"></td>
+ <td id="LC100" class="blob-code blob-code-inner js-file-line"><span class="pl-k">local</span> i=<span class="pl-smi">$1</span></td>
+ </tr>
+ <tr>
+ <td id="L101" class="blob-num js-line-number" data-line-number="101"></td>
+ <td id="LC101" class="blob-code blob-code-inner js-file-line">cat <span class="pl-smi">$i</span> <span class="pl-k">&gt;</span> <span class="pl-smi">$BACKUP</span></td>
+ </tr>
+ <tr>
+ <td id="L102" class="blob-num js-line-number" data-line-number="102"></td>
+ <td id="LC102" class="blob-code blob-code-inner js-file-line">{ remove_nolisten_assignment_from <span class="pl-smi">$i</span><span class="pl-k">;</span></td>
+ </tr>
+ <tr>
+ <td id="L103" class="blob-num js-line-number" data-line-number="103"></td>
+ <td id="LC103" class="blob-code blob-code-inner js-file-line"> remove_DisallowTCP_from <span class="pl-smi">$i</span><span class="pl-k">;</span></td>
+ </tr>
+ <tr>
+ <td id="L104" class="blob-num js-line-number" data-line-number="104"></td>
+ <td id="LC104" class="blob-code blob-code-inner js-file-line"> remove_nolisten_X_or_startx_actuals_from <span class="pl-smi">$i</span><span class="pl-k">;</span></td>
+ </tr>
+ <tr>
+ <td id="L105" class="blob-num js-line-number" data-line-number="105"></td>
+ <td id="LC105" class="blob-code blob-code-inner js-file-line">} <span class="pl-k">||</span> <span class="pl-c1">true</span></td>
+ </tr>
+ <tr>
+ <td id="L106" class="blob-num js-line-number" data-line-number="106"></td>
+ <td id="LC106" class="blob-code blob-code-inner js-file-line">diff -q <span class="pl-smi">$BACKUP</span> <span class="pl-smi">$i</span> <span class="pl-k">&gt;</span>/dev/null <span class="pl-k">||</span> {</td>
+ </tr>
+ <tr>
+ <td id="L107" class="blob-num js-line-number" data-line-number="107"></td>
+ <td id="LC107" class="blob-code blob-code-inner js-file-line">CHANGED_FILES+=<span class="pl-s"><span class="pl-pds">&quot;</span><span class="pl-smi">$i</span> <span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L108" class="blob-num js-line-number" data-line-number="108"></td>
+ <td id="LC108" class="blob-code blob-code-inner js-file-line"> }</td>
+ </tr>
+ <tr>
+ <td id="L109" class="blob-num js-line-number" data-line-number="109"></td>
+ <td id="LC109" class="blob-code blob-code-inner js-file-line">}</td>
+ </tr>
+ <tr>
+ <td id="L110" class="blob-num js-line-number" data-line-number="110"></td>
+ <td id="LC110" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L111" class="blob-num js-line-number" data-line-number="111"></td>
+ <td id="LC111" class="blob-code blob-code-inner js-file-line"><span class="pl-k">function</span> <span class="pl-en">adjust_X_display_manager</span> {</td>
+ </tr>
+ <tr>
+ <td id="L112" class="blob-num js-line-number" data-line-number="112"></td>
+ <td id="LC112" class="blob-code blob-code-inner js-file-line"><span class="pl-c"># global SUDO_OR_NOTHING CHANGED_FILES</span></td>
+ </tr>
+ <tr>
+ <td id="L113" class="blob-num js-line-number" data-line-number="113"></td>
+ <td id="LC113" class="blob-code blob-code-inner js-file-line"><span class="pl-k">local</span> BACKUP=<span class="pl-s"><span class="pl-pds">$(</span>tmpfile<span class="pl-pds">)</span></span></td>
+ </tr>
+ <tr>
+ <td id="L114" class="blob-num js-line-number" data-line-number="114"></td>
+ <td id="LC114" class="blob-code blob-code-inner js-file-line">DIRS=<span class="pl-s"><span class="pl-pds">$(</span><span class="pl-smi">$SUDO_OR_NOTHING</span> find /etc/ -type d -name <span class="pl-s"><span class="pl-pds">&quot;</span>?dm<span class="pl-pds">&quot;</span></span><span class="pl-pds">)</span></span></td>
+ </tr>
+ <tr>
+ <td id="L115" class="blob-num js-line-number" data-line-number="115"></td>
+ <td id="LC115" class="blob-code blob-code-inner js-file-line"><span class="pl-k">if</span> [[ <span class="pl-k">-d</span> /etc/X11/xinit ]]<span class="pl-k">;</span> <span class="pl-k">then</span> DIRS+=<span class="pl-s"><span class="pl-pds">&quot;</span> /etc/X11/xinit/<span class="pl-pds">&quot;</span></span><span class="pl-k">;</span> <span class="pl-k">fi</span></td>
+ </tr>
+ <tr>
+ <td id="L116" class="blob-num js-line-number" data-line-number="116"></td>
+ <td id="LC116" class="blob-code blob-code-inner js-file-line">FILES=<span class="pl-s"><span class="pl-pds">$(</span>[[ <span class="pl-k">-n</span> <span class="pl-smi">$DIRS</span> ]] <span class="pl-k">&amp;&amp;</span> <span class="pl-smi">$SUDO_OR_NOTHING</span> find <span class="pl-smi">$DIRS</span> -name <span class="pl-s"><span class="pl-pds">&quot;</span>*rc<span class="pl-pds">&quot;</span></span> -o -name <span class="pl-s"><span class="pl-pds">&quot;</span>*.conf<span class="pl-pds">&quot;</span></span><span class="pl-pds">)</span></span></td>
+ </tr>
+ <tr>
+ <td id="L117" class="blob-num js-line-number" data-line-number="117"></td>
+ <td id="LC117" class="blob-code blob-code-inner js-file-line">FILES=<span class="pl-s"><span class="pl-pds">$(</span><span class="pl-k">for</span> <span class="pl-smi">i</span> <span class="pl-k">in</span> <span class="pl-smi">$FILES</span><span class="pl-k">;</span> <span class="pl-k">do</span> grep -l <span class="pl-s"><span class="pl-pds">&quot;</span>^[a-zA-Z0-9/_\-= ]*[-]nolisten tcp<span class="pl-pds">&quot;</span></span> <span class="pl-smi">$i</span><span class="pl-k">;</span> <span class="pl-k">done</span><span class="pl-pds">)</span></span></td>
+ </tr>
+ <tr>
+ <td id="L118" class="blob-num js-line-number" data-line-number="118"></td>
+ <td id="LC118" class="blob-code blob-code-inner js-file-line"><span class="pl-k">for</span> <span class="pl-smi">i</span> <span class="pl-k">in</span> <span class="pl-smi">$FILES</span><span class="pl-k">;</span> <span class="pl-k">do</span> apply_all_filters <span class="pl-smi">$i</span><span class="pl-k">;</span> <span class="pl-k">done</span></td>
+ </tr>
+ <tr>
+ <td id="L119" class="blob-num js-line-number" data-line-number="119"></td>
+ <td id="LC119" class="blob-code blob-code-inner js-file-line">rm -f <span class="pl-smi">$BACKUP</span></td>
+ </tr>
+ <tr>
+ <td id="L120" class="blob-num js-line-number" data-line-number="120"></td>
+ <td id="LC120" class="blob-code blob-code-inner js-file-line"><span class="pl-c"># A special case: gdm/gdm3 :</span></td>
+ </tr>
+ <tr>
+ <td id="L121" class="blob-num js-line-number" data-line-number="121"></td>
+ <td id="LC121" class="blob-code blob-code-inner js-file-line"><span class="pl-k">if</span> [[ <span class="pl-k">-d</span> /etc/gdm ]]<span class="pl-k">;</span> <span class="pl-k">then</span></td>
+ </tr>
+ <tr>
+ <td id="L122" class="blob-num js-line-number" data-line-number="122"></td>
+ <td id="LC122" class="blob-code blob-code-inner js-file-line"> <span class="pl-smi">$SUDO_OR_NOTHING</span> touch /etc/gdm/custom.conf</td>
+ </tr>
+ <tr>
+ <td id="L123" class="blob-num js-line-number" data-line-number="123"></td>
+ <td id="LC123" class="blob-code blob-code-inner js-file-line"> ensure_DisallowTCP_false_to_gdm_custom_dot_conf</td>
+ </tr>
+ <tr>
+ <td id="L124" class="blob-num js-line-number" data-line-number="124"></td>
+ <td id="LC124" class="blob-code blob-code-inner js-file-line"><span class="pl-k">elif</span> [[ <span class="pl-k">-d</span> /etc/gdm<span class="pl-k">?</span> ]]<span class="pl-k">;</span> <span class="pl-k">then</span></td>
+ </tr>
+ <tr>
+ <td id="L125" class="blob-num js-line-number" data-line-number="125"></td>
+ <td id="LC125" class="blob-code blob-code-inner js-file-line"> <span class="pl-smi">$SUDO_OR_NOTHING</span> touch /etc/gdm<span class="pl-k">?</span>/custom.conf /etc/gdm<span class="pl-k">?</span>/daemon.conf</td>
+ </tr>
+ <tr>
+ <td id="L126" class="blob-num js-line-number" data-line-number="126"></td>
+ <td id="LC126" class="blob-code blob-code-inner js-file-line"> ensure_DisallowTCP_false_to_gdm_custom_dot_conf /etc/gdm<span class="pl-k">?</span>/custom.conf</td>
+ </tr>
+ <tr>
+ <td id="L127" class="blob-num js-line-number" data-line-number="127"></td>
+ <td id="LC127" class="blob-code blob-code-inner js-file-line"> ensure_DisallowTCP_false_to_gdm_custom_dot_conf /etc/gdm<span class="pl-k">?</span>/daemon.conf</td>
+ </tr>
+ <tr>
+ <td id="L128" class="blob-num js-line-number" data-line-number="128"></td>
+ <td id="LC128" class="blob-code blob-code-inner js-file-line"><span class="pl-k">fi</span></td>
+ </tr>
+ <tr>
+ <td id="L129" class="blob-num js-line-number" data-line-number="129"></td>
+ <td id="LC129" class="blob-code blob-code-inner js-file-line"><span class="pl-c"># Another special case: lightdm</span></td>
+ </tr>
+ <tr>
+ <td id="L130" class="blob-num js-line-number" data-line-number="130"></td>
+ <td id="LC130" class="blob-code blob-code-inner js-file-line"><span class="pl-k">if</span> [[ <span class="pl-k">-d</span> /etc/lightdm ]]<span class="pl-k">;</span> <span class="pl-k">then</span></td>
+ </tr>
+ <tr>
+ <td id="L131" class="blob-num js-line-number" data-line-number="131"></td>
+ <td id="LC131" class="blob-code blob-code-inner js-file-line"> <span class="pl-smi">$SUDO_OR_NOTHING</span> touch /etc/lightdm/lightdm.conf</td>
+ </tr>
+ <tr>
+ <td id="L132" class="blob-num js-line-number" data-line-number="132"></td>
+ <td id="LC132" class="blob-code blob-code-inner js-file-line"> ensure_xserver_allow_tcp_in_lightdm_dot_conf</td>
+ </tr>
+ <tr>
+ <td id="L133" class="blob-num js-line-number" data-line-number="133"></td>
+ <td id="LC133" class="blob-code blob-code-inner js-file-line"><span class="pl-k">fi</span></td>
+ </tr>
+ <tr>
+ <td id="L134" class="blob-num js-line-number" data-line-number="134"></td>
+ <td id="LC134" class="blob-code blob-code-inner js-file-line">[[ <span class="pl-k">-n</span> <span class="pl-smi">$CHANGED_FILES</span> ]]</td>
+ </tr>
+ <tr>
+ <td id="L135" class="blob-num js-line-number" data-line-number="135"></td>
+ <td id="LC135" class="blob-code blob-code-inner js-file-line">}</td>
+ </tr>
+ <tr>
+ <td id="L136" class="blob-num js-line-number" data-line-number="136"></td>
+ <td id="LC136" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L137" class="blob-num js-line-number" data-line-number="137"></td>
+ <td id="LC137" class="blob-code blob-code-inner js-file-line"><span class="pl-k">if</span> ps -A -o cmd <span class="pl-k">|</span> grep -q <span class="pl-s"><span class="pl-pds">&#39;</span>^[a-zA-Z0-9/]*X.*[-]nolisten tcp<span class="pl-pds">&#39;</span></span><span class="pl-k">;</span> <span class="pl-k">then</span></td>
+ </tr>
+ <tr>
+ <td id="L138" class="blob-num js-line-number" data-line-number="138"></td>
+ <td id="LC138" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">echo</span> -e <span class="pl-s"><span class="pl-pds">&quot;</span>\n---<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L139" class="blob-num js-line-number" data-line-number="139"></td>
+ <td id="LC139" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">&quot;</span>=============================================================<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L140" class="blob-num js-line-number" data-line-number="140"></td>
+ <td id="LC140" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">&quot;</span> Warning readme<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L141" class="blob-num js-line-number" data-line-number="141"></td>
+ <td id="LC141" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">&quot;</span> Warning readme<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L142" class="blob-num js-line-number" data-line-number="142"></td>
+ <td id="LC142" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">&quot;</span>=============================================================<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L143" class="blob-num js-line-number" data-line-number="143"></td>
+ <td id="LC143" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">&quot;</span>* Warning: your X server has been launched with the option &#39;-nolisten tcp&#39;<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L144" class="blob-num js-line-number" data-line-number="144"></td>
+ <td id="LC144" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">&quot;</span> =&gt; This option should be removed from your X display manager configuration.<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L145" class="blob-num js-line-number" data-line-number="145"></td>
+ <td id="LC145" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">echo</span> -n <span class="pl-s"><span class="pl-pds">&quot;</span> Shall I try to fix it ([y]/n)? <span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L146" class="blob-num js-line-number" data-line-number="146"></td>
+ <td id="LC146" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">read</span> z</td>
+ </tr>
+ <tr>
+ <td id="L147" class="blob-num js-line-number" data-line-number="147"></td>
+ <td id="LC147" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> [[ <span class="pl-smi">$z</span> <span class="pl-k">!=</span> n <span class="pl-k">&amp;&amp;</span> <span class="pl-smi">$z</span> <span class="pl-k">!=</span> N ]]<span class="pl-k">;</span> <span class="pl-k">then</span></td>
+ </tr>
+ <tr>
+ <td id="L148" class="blob-num js-line-number" data-line-number="148"></td>
+ <td id="LC148" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> adjust_X_display_manager<span class="pl-k">;</span> <span class="pl-k">then</span></td>
+ </tr>
+ <tr>
+ <td id="L149" class="blob-num js-line-number" data-line-number="149"></td>
+ <td id="LC149" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">&quot;</span> Ok. File(s) changed: <span class="pl-smi">$CHANGED_FILES</span><span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L150" class="blob-num js-line-number" data-line-number="150"></td>
+ <td id="LC150" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">&quot;</span> You must restart your X display manager for the changes to take effect.<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L151" class="blob-num js-line-number" data-line-number="151"></td>
+ <td id="LC151" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">else</span></td>
+ </tr>
+ <tr>
+ <td id="L152" class="blob-num js-line-number" data-line-number="152"></td>
+ <td id="LC152" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">&quot;</span> Sorry, no change performed: you must edit your configuration manually.<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L153" class="blob-num js-line-number" data-line-number="153"></td>
+ <td id="LC153" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">fi</span></td>
+ </tr>
+ <tr>
+ <td id="L154" class="blob-num js-line-number" data-line-number="154"></td>
+ <td id="LC154" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">fi</span></td>
+ </tr>
+ <tr>
+ <td id="L155" class="blob-num js-line-number" data-line-number="155"></td>
+ <td id="LC155" class="blob-code blob-code-inner js-file-line"><span class="pl-k">else</span></td>
+ </tr>
+ <tr>
+ <td id="L156" class="blob-num js-line-number" data-line-number="156"></td>
+ <td id="LC156" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">echo</span> -e <span class="pl-s"><span class="pl-pds">&quot;</span>\n* Your X server hasn&#39;t been launched with the option <span class="pl-cce">\</span></span></td>
+ </tr>
+ <tr>
+ <td id="L157" class="blob-num js-line-number" data-line-number="157"></td>
+ <td id="LC157" class="blob-code blob-code-inner js-file-line"><span class="pl-s"> &#39;-nolisten tcp&#39; : good.<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L158" class="blob-num js-line-number" data-line-number="158"></td>
+ <td id="LC158" class="blob-code blob-code-inner js-file-line"><span class="pl-k">fi</span></td>
+ </tr>
+ <tr>
+ <td id="L159" class="blob-num js-line-number" data-line-number="159"></td>
+ <td id="LC159" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L160" class="blob-num js-line-number" data-line-number="160"></td>
+ <td id="LC160" class="blob-code blob-code-inner js-file-line"><span class="pl-c"># =============================================================</span></td>
+ </tr>
+ <tr>
+ <td id="L161" class="blob-num js-line-number" data-line-number="161"></td>
+ <td id="LC161" class="blob-code blob-code-inner js-file-line"><span class="pl-c"># Daemon information</span></td>
+ </tr>
+ <tr>
+ <td id="L162" class="blob-num js-line-number" data-line-number="162"></td>
+ <td id="LC162" class="blob-code blob-code-inner js-file-line"><span class="pl-c"># =============================================================</span></td>
+ </tr>
+ <tr>
+ <td id="L163" class="blob-num js-line-number" data-line-number="163"></td>
+ <td id="LC163" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L164" class="blob-num js-line-number" data-line-number="164"></td>
+ <td id="LC164" class="blob-code blob-code-inner js-file-line"><span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">&quot;</span>\n=============================================================<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L165" class="blob-num js-line-number" data-line-number="165"></td>
+ <td id="LC165" class="blob-code blob-code-inner js-file-line"><span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">&quot;</span> Daemon information <span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L166" class="blob-num js-line-number" data-line-number="166"></td>
+ <td id="LC166" class="blob-code blob-code-inner js-file-line"><span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">&quot;</span>=============================================================<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L167" class="blob-num js-line-number" data-line-number="167"></td>
+ <td id="LC167" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L168" class="blob-num js-line-number" data-line-number="168"></td>
+ <td id="LC168" class="blob-code blob-code-inner js-file-line"><span class="pl-c1">echo</span> -e <span class="pl-s"><span class="pl-pds">&quot;</span>\n* Before start Marionnet, you must start the daemon :<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L169" class="blob-num js-line-number" data-line-number="169"></td>
+ <td id="LC169" class="blob-code blob-code-inner js-file-line"><span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">&quot;</span>sudo systemctl start marionnetdaemon.service<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L170" class="blob-num js-line-number" data-line-number="170"></td>
+ <td id="LC170" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L171" class="blob-num js-line-number" data-line-number="171"></td>
+ <td id="LC171" class="blob-code blob-code-inner js-file-line"><span class="pl-c"># =============================================================</span></td>
+ </tr>
+ <tr>
+ <td id="L172" class="blob-num js-line-number" data-line-number="172"></td>
+ <td id="LC172" class="blob-code blob-code-inner js-file-line"><span class="pl-c"># Install marionnet_kernels and filesystems</span></td>
+ </tr>
+ <tr>
+ <td id="L173" class="blob-num js-line-number" data-line-number="173"></td>
+ <td id="LC173" class="blob-code blob-code-inner js-file-line"><span class="pl-c"># =============================================================</span></td>
+ </tr>
+ <tr>
+ <td id="L174" class="blob-num js-line-number" data-line-number="174"></td>
+ <td id="LC174" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L175" class="blob-num js-line-number" data-line-number="175"></td>
+ <td id="LC175" class="blob-code blob-code-inner js-file-line"><span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">&quot;</span>\n=============================================================<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L176" class="blob-num js-line-number" data-line-number="176"></td>
+ <td id="LC176" class="blob-code blob-code-inner js-file-line"><span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">&quot;</span> Downlading <span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L177" class="blob-num js-line-number" data-line-number="177"></td>
+ <td id="LC177" class="blob-code blob-code-inner js-file-line"><span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">&quot;</span>=============================================================<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L178" class="blob-num js-line-number" data-line-number="178"></td>
+ <td id="LC178" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L179" class="blob-num js-line-number" data-line-number="179"></td>
+ <td id="LC179" class="blob-code blob-code-inner js-file-line"><span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">&quot;</span>\n* Downloading script marionnet_from_scratch : <span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L180" class="blob-num js-line-number" data-line-number="180"></td>
+ <td id="LC180" class="blob-code blob-code-inner js-file-line">wget http://www.marionnet.org/downloads/marionnet_from_scratch/marionnet_from_scratch</td>
+ </tr>
+ <tr>
+ <td id="L181" class="blob-num js-line-number" data-line-number="181"></td>
+ <td id="LC181" class="blob-code blob-code-inner js-file-line"><span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">&quot;</span>* Downlading and installing Marionnet kernels and filesystems (Linux <span class="pl-cce">\</span></span></td>
+ </tr>
+ <tr>
+ <td id="L182" class="blob-num js-line-number" data-line-number="182"></td>
+ <td id="LC182" class="blob-code blob-code-inner js-file-line"><span class="pl-s">distributions Debian Lenny, Mandriva, Pinocchio, etc.)<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L183" class="blob-num js-line-number" data-line-number="183"></td>
+ <td id="LC183" class="blob-code blob-code-inner js-file-line"><span class="pl-c1">echo</span> -e <span class="pl-s"><span class="pl-pds">&quot;</span>* Warning! this process may take several hours!<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L184" class="blob-num js-line-number" data-line-number="184"></td>
+ <td id="LC184" class="blob-code blob-code-inner js-file-line"><span class="pl-c1">echo</span> -e <span class="pl-s"><span class="pl-pds">&quot;</span>* Command : <span class="pl-cce">\`</span>./marionnet_from_scratch --download-only -m trunk <span class="pl-cce">\</span></span></td>
+ </tr>
+ <tr>
+ <td id="L185" class="blob-num js-line-number" data-line-number="185"></td>
+ <td id="LC185" class="blob-code blob-code-inner js-file-line"><span class="pl-s">--prefix /usr<span class="pl-cce">\`</span><span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L186" class="blob-num js-line-number" data-line-number="186"></td>
+ <td id="LC186" class="blob-code blob-code-inner js-file-line">chmod +x ./marionnet_from_scratch</td>
+ </tr>
+ <tr>
+ <td id="L187" class="blob-num js-line-number" data-line-number="187"></td>
+ <td id="LC187" class="blob-code blob-code-inner js-file-line">./marionnet_from_scratch --download-only -m trunk --prefix /usr</td>
+ </tr>
+ <tr>
+ <td id="L188" class="blob-num js-line-number" data-line-number="188"></td>
+ <td id="LC188" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L189" class="blob-num js-line-number" data-line-number="189"></td>
+ <td id="LC189" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L190" class="blob-num js-line-number" data-line-number="190"></td>
+ <td id="LC190" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L191" class="blob-num js-line-number" data-line-number="191"></td>
+ <td id="LC191" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L192" class="blob-num js-line-number" data-line-number="192"></td>
+ <td id="LC192" class="blob-code blob-code-inner js-file-line"><span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">&quot;</span>* Post installation completed———\n\n\n<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L193" class="blob-num js-line-number" data-line-number="193"></td>
+ <td id="LC193" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L194" class="blob-num js-line-number" data-line-number="194"></td>
+ <td id="LC194" class="blob-code blob-code-inner js-file-line">}</td>
+ </tr>
+ <tr>
+ <td id="L195" class="blob-num js-line-number" data-line-number="195"></td>
+ <td id="LC195" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L196" class="blob-num js-line-number" data-line-number="196"></td>
+ <td id="LC196" class="blob-code blob-code-inner js-file-line"><span class="pl-en">post_remove</span>() {</td>
+ </tr>
+ <tr>
+ <td id="L197" class="blob-num js-line-number" data-line-number="197"></td>
+ <td id="LC197" class="blob-code blob-code-inner js-file-line"><span class="pl-c1">echo</span> -e <span class="pl-s"><span class="pl-pds">&quot;</span>* Uninstallation process completed\n\n<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L198" class="blob-num js-line-number" data-line-number="198"></td>
+ <td id="LC198" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L199" class="blob-num js-line-number" data-line-number="199"></td>
+ <td id="LC199" class="blob-code blob-code-inner js-file-line"><span class="pl-c1">echo</span> -e <span class="pl-s"><span class="pl-pds">&quot;</span>Post remove hook<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L200" class="blob-num js-line-number" data-line-number="200"></td>
+ <td id="LC200" class="blob-code blob-code-inner js-file-line"><span class="pl-c1">echo</span> -e <span class="pl-s"><span class="pl-pds">&quot;</span>——————————————————————\n<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L201" class="blob-num js-line-number" data-line-number="201"></td>
+ <td id="LC201" class="blob-code blob-code-inner js-file-line"><span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">&quot;</span>* Erasing Marionnet kernels files<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L202" class="blob-num js-line-number" data-line-number="202"></td>
+ <td id="LC202" class="blob-code blob-code-inner js-file-line"> rm -Rf /usr/share/marionnet</td>
+ </tr>
+ <tr>
+ <td id="L203" class="blob-num js-line-number" data-line-number="203"></td>
+ <td id="LC203" class="blob-code blob-code-inner js-file-line"><span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">&quot;</span>Success...<span class="pl-pds">&quot;</span></span></td>
+ </tr>
+ <tr>
+ <td id="L204" class="blob-num js-line-number" data-line-number="204"></td>
+ <td id="LC204" class="blob-code blob-code-inner js-file-line">}</td>
+ </tr>
+ <tr>
+ <td id="L205" class="blob-num js-line-number" data-line-number="205"></td>
+ <td id="LC205" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L206" class="blob-num js-line-number" data-line-number="206"></td>
+ <td id="LC206" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L207" class="blob-num js-line-number" data-line-number="207"></td>
+ <td id="LC207" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L208" class="blob-num js-line-number" data-line-number="208"></td>
+ <td id="LC208" class="blob-code blob-code-inner js-file-line">
+</td>
+ </tr>
+ <tr>
+ <td id="L209" class="blob-num js-line-number" data-line-number="209"></td>
+ <td id="LC209" class="blob-code blob-code-inner js-file-line"><span class="pl-c"># vim: ft=sh</span></td>
+ </tr>
+</table>
+
+ </div>
+
+</div>
+
+<button type="button" data-facebox="#jump-to-line" data-facebox-class="linejump" data-hotkey="l" class="hidden">Jump to Line</button>
+<div id="jump-to-line" style="display:none">
+ <!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="" class="js-jump-to-line-form" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>
+ <input class="form-control linejump-input js-jump-to-line-field" type="text" placeholder="Jump to line&hellip;" aria-label="Jump to line" autofocus>
+ <button type="submit" class="btn">Go</button>
+</form></div>
+
+ </div>
+ <div class="modal-backdrop"></div>
+</div>
+
+
+ </div>
+ </div>
+
+ </div>
+
+ <div class="container site-footer-container">
+ <div class="site-footer" role="contentinfo">
+ <ul class="site-footer-links right">
+ <li><a href="https://status.github.com/" data-ga-click="Footer, go to status, text:status">Status</a></li>
+ <li><a href="https://developer.github.com" data-ga-click="Footer, go to api, text:api">API</a></li>
+ <li><a href="https://training.github.com" data-ga-click="Footer, go to training, text:training">Training</a></li>
+ <li><a href="https://shop.github.com" data-ga-click="Footer, go to shop, text:shop">Shop</a></li>
+ <li><a href="https://github.com/blog" data-ga-click="Footer, go to blog, text:blog">Blog</a></li>
+ <li><a href="https://github.com/about" data-ga-click="Footer, go to about, text:about">About</a></li>
+
+ </ul>
+
+ <a href="https://github.com" aria-label="Homepage" class="site-footer-mark" title="GitHub">
+ <svg aria-hidden="true" class="octicon octicon-mark-github" height="24" version="1.1" viewBox="0 0 16 16" width="24"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59 0.4 0.07 0.55-0.17 0.55-0.38 0-0.19-0.01-0.82-0.01-1.49-2.01 0.37-2.53-0.49-2.69-0.94-0.09-0.23-0.48-0.94-0.82-1.13-0.28-0.15-0.68-0.52-0.01-0.53 0.63-0.01 1.08 0.58 1.23 0.82 0.72 1.21 1.87 0.87 2.33 0.66 0.07-0.52 0.28-0.87 0.51-1.07-1.78-0.2-3.64-0.89-3.64-3.95 0-0.87 0.31-1.59 0.82-2.15-0.08-0.2-0.36-1.02 0.08-2.12 0 0 0.67-0.21 2.2 0.82 0.64-0.18 1.32-0.27 2-0.27 0.68 0 1.36 0.09 2 0.27 1.53-1.04 2.2-0.82 2.2-0.82 0.44 1.1 0.16 1.92 0.08 2.12 0.51 0.56 0.82 1.27 0.82 2.15 0 3.07-1.87 3.75-3.65 3.95 0.29 0.25 0.54 0.73 0.54 1.48 0 1.07-0.01 1.93-0.01 2.2 0 0.21 0.15 0.46 0.55 0.38C13.71 14.53 16 11.53 16 8 16 3.58 12.42 0 8 0z"></path></svg>
+</a>
+ <ul class="site-footer-links">
+ <li>&copy; 2016 <span title="0.05028s from github-fe126-cp1-prd.iad.github.net">GitHub</span>, Inc.</li>
+ <li><a href="https://github.com/site/terms" data-ga-click="Footer, go to terms, text:terms">Terms</a></li>
+ <li><a href="https://github.com/site/privacy" data-ga-click="Footer, go to privacy, text:privacy">Privacy</a></li>
+ <li><a href="https://github.com/security" data-ga-click="Footer, go to security, text:security">Security</a></li>
+ <li><a href="https://github.com/contact" data-ga-click="Footer, go to contact, text:contact">Contact</a></li>
+ <li><a href="https://help.github.com" data-ga-click="Footer, go to help, text:help">Help</a></li>
+ </ul>
+ </div>
+</div>
+
+
+
+
+
+ <div id="ajax-error-message" class="ajax-error-message flash flash-error">
+ <svg aria-hidden="true" class="octicon octicon-alert" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path d="M15.72 12.5l-6.85-11.98C8.69 0.21 8.36 0.02 8 0.02s-0.69 0.19-0.87 0.5l-6.85 11.98c-0.18 0.31-0.18 0.69 0 1C0.47 13.81 0.8 14 1.15 14h13.7c0.36 0 0.69-0.19 0.86-0.5S15.89 12.81 15.72 12.5zM9 12H7V10h2V12zM9 9H7V5h2V9z"></path></svg>
+ <button type="button" class="flash-close js-flash-close js-ajax-error-dismiss" aria-label="Dismiss error">
+ <svg aria-hidden="true" class="octicon octicon-x" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M7.48 8l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75-1.48-1.48 3.75-3.75L0.77 4.25l1.48-1.48 3.75 3.75 3.75-3.75 1.48 1.48-3.75 3.75z"></path></svg>
+ </button>
+ Something went wrong with that request. Please try again.
+ </div>
+
+
+ <script crossorigin="anonymous" src="https://assets-cdn.github.com/assets/compat-7db58f8b7b91111107fac755dd8b178fe7db0f209ced51fc339c446ad3f8da2b.js"></script>
+ <script crossorigin="anonymous" src="https://assets-cdn.github.com/assets/frameworks-ea5bbb2a837377ffde53e1099e5909c8df4d36cc5e90c05aeb3694b157df7e4d.js"></script>
+ <script async="async" crossorigin="anonymous" src="https://assets-cdn.github.com/assets/github-391829145dbc07158dde112aa636b7ac8b58f7726527ce710bd56118ae1d2f57.js"></script>
+
+
+
+
+
+
+ <div class="js-stale-session-flash stale-session-flash flash flash-warn flash-banner hidden">
+ <svg aria-hidden="true" class="octicon octicon-alert" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path d="M15.72 12.5l-6.85-11.98C8.69 0.21 8.36 0.02 8 0.02s-0.69 0.19-0.87 0.5l-6.85 11.98c-0.18 0.31-0.18 0.69 0 1C0.47 13.81 0.8 14 1.15 14h13.7c0.36 0 0.69-0.19 0.86-0.5S15.89 12.81 15.72 12.5zM9 12H7V10h2V12zM9 9H7V5h2V9z"></path></svg>
+ <span class="signed-in-tab-flash">You signed in with another tab or window. <a href="">Reload</a> to refresh your session.</span>
+ <span class="signed-out-tab-flash">You signed out in another tab or window. <a href="">Reload</a> to refresh your session.</span>
+ </div>
+ <div class="facebox" id="facebox" style="display:none;">
+ <div class="facebox-popup">
+ <div class="facebox-content" role="dialog" aria-labelledby="facebox-header" aria-describedby="facebox-description">
+ </div>
+ <button type="button" class="facebox-close js-facebox-close" aria-label="Close modal">
+ <svg aria-hidden="true" class="octicon octicon-x" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M7.48 8l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75-1.48-1.48 3.75-3.75L0.77 4.25l1.48-1.48 3.75 3.75 3.75-3.75 1.48 1.48-3.75 3.75z"></path></svg>
+ </button>
+ </div>
+</div>
+
+ </body>
+</html>
+
diff --git a/marionnet.install b/marionnet.install
index 3faede1f37e..174572910ad 100644
--- a/marionnet.install
+++ b/marionnet.install
@@ -181,10 +181,8 @@ wget http://www.marionnet.org/downloads/marionnet_from_scratch/marionnet_from_sc
echo "* Downlading and installing Marionnet kernels and filesystems (Linux \
distributions Debian Lenny, Mandriva, Pinocchio, etc.)"
echo -e "* Warning! this process may take several hours!"
-echo -e "* Command : \`./marionnet_from_scratch --download-only -m trunk \
---prefix /usr\`"
-chmod +x ./marionnet_from_scratch
-./marionnet_from_scratch --download-only -m trunk --prefix /usr
+chmod u+x ./numberOfStepsPassedForDownloadMarionnetFilesystems.tmp
+./numberOfStepsPassedForDownloadMarionnetFilesystems.tmp -m trunk --prefix /usr/share/marionnet
diff --git a/marionnet_from_scratch-Downloader b/marionnet_from_scratch-Downloader
new file mode 100644
index 00000000000..1d226196363
--- /dev/null
+++ b/marionnet_from_scratch-Downloader
@@ -0,0 +1,498 @@
+#!/bin/bash
+
+# Adapted by JulioJu from :
+# http://bazaar.launchpad.net/~marionnet-drivers/marionnet/trunk/view/head:/useful-scripts/marionnet_from_scratch
+# by Jean-Vincent Loddo Université Paris 13
+# (may 2016)
+# (LGPL)
+
+# This file is part of marionnet
+# Copyright (C) 2010 2011 2012 2013 2014 2015 2016 Jean-Vincent Loddo
+# Copyright (C) 2010 2011 2012 2013 2014 2015 2016 Université Paris 13
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# Script JulioJu custom version
+# 2016.05.28
+
+set -e
+shopt -s nullglob
+shopt -s expand_aliases
+
+# function exiting_because_error {
+# # global KEEP_DEBRIS TWDIR
+# echo -e "\n\n\n\nExiting because of an unexpected error in line $BASH_LINENO"
+# exit 3
+# }
+# #
+# trap exiting_because_error ERR
+
+function trap_custom {
+local SIGINT=2
+local SIGQUIT=3
+local SIGABRT=6
+local SIGKILL=9
+local SIGTERM=15 # CTRL-C
+local TRAPPED_EVENTS="$SIGINT $SIGQUIT $SIGABRT $SIGKILL $SIGTERM"
+trap "exiting_because_signal" $TRAPPED_EVENTS
+}
+
+trap_custom
+
+
+# @todo
+# FOR UPDATE THIS SCRIPT, PLEASE MAINTAINS TUNNING SECTION
+# FOR UPDATE THIS SCRIPT, PLEASE MAINTAINS TUNNING SECTION
+# FOR UPDATE THIS SCRIPT, PLEASE MAINTAINS TUNNING SECTION
+
+# =============================================================
+# PARSING COMMAND LINE {{{1
+# =============================================================
+
+# Getopt's format used to parse the command line:
+OPTSTRING="hp:m:b:o:gG:t:kl:d:v:NVDKPFTAOc:"
+
+function parse_cmdline {
+local i j flag
+# Transform long format options into the short one:
+for i in "$@"; do
+ if [[ double_dash_found = 1 ]]; then
+ ARGS+=("$i")
+ else case "$i" in
+ --help)
+ ARGS+=("-h");
+ ;;
+ --marionnet-version|--marionnet)
+ ARGS+=("-m");
+ ;;
+ --prefix)
+ ARGS+=("-p");
+ ;;
+ --)
+ ARGS+=("--");
+ double_dash_found=1;
+ ;;
+ --[a-zA-Z0-9]*)
+ echo "*** Illegal long option $i.";
+ exit 1;
+ ;;
+ -[a-zA-Z0-9]*)
+ j="${i:1}";
+ while [[ $j != "" ]]; do ARGS+=("-${j:0:1}"); j="${j:1}"; done;
+ ;;
+ *)
+ ARGS+=("$i")
+ ;;
+ esac
+ fi
+done
+set - "${ARGS[@]}"
+unset ARGS
+
+# Interpret short format options:
+while [[ $# -gt 0 ]]; do
+ OPTIND=1
+ while getopts ":$OPTSTRING" flag; do
+ if [[ $flag = '?' ]]; then
+ echo "ERROR: illegal option -$OPTARG.";
+ exit 1;
+ fi
+ eval "option_${flag}=$OPTIND"
+ eval "option_${flag}_arg='$OPTARG'"
+ done
+ for ((j=1; j<OPTIND; j++)) do
+ if [[ $1 = "--" ]]; then
+ shift;
+ for i in "$@"; do ARGS+=("$i"); shift; done
+ break 2;
+ else
+ shift;
+ fi
+ done
+ # Get just the first argument and reloop:
+ for i in "$@"; do ARGS+=("$i"); shift; break; done
+done
+} # end of parse_cmdline()
+
+declare -a ARGS
+parse_cmdline "$@" # read OPTSTRING and set ARGS
+# Warning: the following two branches could not be grouped
+# into the single command (`else' branch):
+# set - "${ARGS[@]}";
+# The behaviour is not the same when the array is empty!
+if [[ ${#ARGS[@]} -eq 0 ]]; then
+ set - "";
+else
+ set - "${ARGS[@]}";
+fi
+unset ARGS
+
+function print_usage_and_exit {
+ echo -e "\n\nUsage: ${0##*/} [OPTIONS]
+Download, and decompress step by step Marionnet's principal dependencies from mirror\
+(http://www.marionnet.org/download/).
+
+ $(print_description_script)
+Options:
+ -p, --prefix PATH Set the installation prefix
+ -h Print this message and exit
+ -m, --marionnet VERSION Set marionnet's version (for instance 'trunk')
+Defaults:
+ - the installation prefix is ${PREFIX}
+ - marionnet's version is ${MARIONNET_VERSION:-latest}"
+ exit $1
+}
+
+
+# Option -h
+if [[ -n ${option_h} ]]; then
+ print_usage_and_exit 0
+fi
+
+# Option -p, --prefix
+if [[ -n ${option_p} ]]; then
+ PREFIX=$(realpath "${option_p_arg}")
+else
+ PREFIX=$(realpath /usr/share)
+fi
+
+# test version
+MARIONNET_VERSION=
+if [[ -n ${option_m} ]]; then
+ MARIONNET_VERSION="${option_m_arg}"
+elif [[ -e "./numberOfStepsPassedForDownloadMarionnetFilesystems.tmp" ]]
+then
+ vr=$(cat "./numberOfStepsPassedForDownloadMarionnetFilesystems.tmp" | tail -n 1)
+ MARIONNET_VERSION="$vr"
+ unset vr
+fi
+if [[ $MARIONNET_VERSION != "trunk" && $MARIONNET_VERSION != "0.90" ]] ;
+ then
+ z=
+ echo "Is it Marionnet trunk version [y/n] ?"
+ read z
+ while [[ $z != "y" && $z != "Y" && $z != "n" && $z != "N" ]] ; do
+ # Infinite loop under Archlinux Build System
+ echo "Is it Marionnet trunk version [y/n] ?"
+ read z
+ done
+ if [[ $z == "y" || $z == "Y" ]] ; then
+ MARIONNET_VERSION="trunk"
+ else
+ MARIONNET_VERSION="0.90"
+ fi
+ unset z
+fi
+
+# =============================================================
+# TUNING {{{1
+# =============================================================
+
+if [[ $MARIONNET_VERSION == "trunk" ]] ; then
+ REQUIRED_MB=7000
+ number_of_steps=8
+else
+ REQUIRED_MB=5000
+ number_of_steps=5
+fi
+
+# kernels weight (Mo)
+kernels_weight=3
+pinocchio_weight=49
+big_filesystems_Debian_weight=432
+big_filesystems_Mandriva_weight=347
+big_filesystems_weight=0
+if [[ $MARIONNET_VERSION == "trunk" ]]; then
+ kernelsv1_weight=3
+ tiny_filesystemsv1_weight=16
+ big_filesystemsv1_weight=560
+else
+ kernelsv1_weight=0
+ tiny_filesystemsv1_weight=0
+ big_filesystemsv1_weight=0
+fi
+total_weight=$((\
+$kernels_weight+$pinocchio_weight+\
+$big_filesystems_Debian_weight+$big_filesystems_Mandriva_weight+$big_filesystems_weight+\
+$kernelsv1_weight+$tiny_filesystemsv1_weight+$big_filesystemsv1_weight\
+))
+
+# This array is used if download resume, to calculate new total_weight of
+# current download
+rest=$total_weight
+array_weight_total_downloaded=( "$(($rest-$kernels_weight))"
+"$(($rest-$pinocchio_weight))"
+"$(($rest-$big_filesystems_Debian_weight))"
+"$(($rest-$big_filesystems_Mandriva_weight))"
+"$(($rest-$big_filesystems_weight))"
+"$(($rest-$kernelsv1_weight))"
+"$(($rest-$tiny_filesystemsv1_weight))"
+"$(($rest-$big_filesystemsv1_weight))")
+rest=$total_weight
+
+# Array used in Main to perfom all download.
+if [[ $MARIONNET_VERSION == "trunk" ]]; then
+ # Work without eval in bash 4.3
+ array_perform_action=("download_our_kernels $kernels_weight"
+ "download_our_pinocchio_filesystems $pinocchio_weight"
+ "download_our_big_filesystems $big_filesystems_weight"
+ "download_debian_lenny $big_filesystems_Debian_weight"
+ "download_mandriva $big_filesystems_Mandriva_weight"
+ "download_our_v1_kernels $kernelsv1_weight"
+ "download_our_v1_tiny_filesystems $tiny_filesystemsv1_weight"
+ "download_our_v1_big_filesystems $big_filesystemsv1_weight")
+else
+ array_perform_action=("download_our_kernels $kernels_weight"
+ "download_our_pinocchio_filesystems $pinocchio_weight"
+ "download_our_big_filesystems $big_filesystems_weight")
+fi
+
+
+OUR_BASE_URL="https://www.marionnet.org/downloads/marionnet_from_scratch"
+OUR_MIRROR="$OUR_BASE_URL/mirror/"
+OUR_TRUNK_SPECIFIC_URL="$OUR_BASE_URL/trunk"
+
+
+
+# =============================================================
+# Tests function {{{1
+# =============================================================
+
+function print_description_script {
+echo -e " If the download is interrupted, it can be resumed by execute ${0##*/} who \
+is stored in $(realpath ./). This programm test if the hard disk have \
+enough free space, if there isn't enough, it don't start download.
+
+Under ArchLinux, if Marionnet have been installed with Aur repository,
+files are extract in the good foler (i.e. /usr/share/marionnet). \
+For other distributions, or if you have installed with the script « \
+marionnet_from_scratch » customise the « --prefix » option. "
+}
+
+
+function exiting_because_signal {
+echo -e "\n\n\n\nExiting because of signal."
+
+print_description_script
+
+echo -e "\n\n"
+
+
+if [[ $MARIONNET_VERSION = "trunk" ]]; then
+ echo -e "If it's trunk version, run « ./marionnet_from_scratch-Download -m trunk" »
+ echo -e "If $PREFIX/numberOfStepsPassedForDownloadMarionnetFilesystems.tmp exists,\ you can omit « -m trunk »."
+fi
+echo -e "
+---
+---
+Exiting."
+exit 2
+}
+
+# Temporary Working Directory TWDIR (global variable)
+# Automatically cleaned when some events occur
+function freespace {
+local FREE_MB=$(df -B 1M -P $PREFIX | awk '{print $4}' | tail -n 1)
+if [[ $FREE_MB -lt $REQUIRED_MB ]]; then
+ echo "Insufficient free disk space (${FREE_MB} Mb) in the directory $PREFIX."
+ echo "It's beautifule to have $REQUIRED_MB Mb to install and keep a little bit more space in your disk."
+ echo "Exiting."
+ exit 1
+fi 1>&2
+}
+
+# =============================================================
+# FUNCTIONS FOR DOWNLOADING OUR KERNELS AND FILESYSTEMS {{{1
+# =============================================================
+
+function download_our_kernels {
+# global $OUR_BASE_URL
+# parameters : file-weight $1
+local KERNELS
+KERNELS=$(curl -L --silent --show-error "$OUR_BASE_URL" \
+ | grep -o 'href="kernels_[^"]*"' \
+ | grep -o "kernels_[^\"]*[.]tar[.]gz"\
+ )
+echo -e "\n\nStage « $FUNCNAME »"
+for i in $KERNELS; do
+ launch_and_log "$OUR_BASE_URL/$i" $i $1
+done
+}
+
+function download_debian_lenny {
+echo -e "\n\nStage « $FUNCNAME »"
+i="filesystems_machine-debian-lenny-sid-2008.tar.gz"
+launch_and_log "$OUR_BASE_URL/$i" $i $1
+}
+
+function download_mandriva {
+echo -e "\n\nStage « $FUNCNAME »"
+i="filesystems_machine-mandriva20100215.tar.gz"
+launch_and_log "$OUR_BASE_URL/$i" $i $1
+}
+
+function download_our_big_filesystems {
+# global $OUR_BASE_URL
+# parameters : file-weight $1
+local FILESYSTEMS
+FILESYSTEMS=$(curl -L --silent --show-error "$OUR_BASE_URL" \
+ | grep -o 'href="filesystems_[^"]*"' \
+ | grep -o "filesystems_[^\"]*[.]tar[.]gz"\
+ | grep -v "filesystems_pinocchio.*[.]tar[.]gz"\
+ )
+echo -e "\n\nStage « $FUNCNAME »"
+for i in $FILESYSTEMS; do
+ if [[ $i == "filesystems_machine-debian-lenny-sid-2008.tar.gz" ]] ; then
+ continue
+ elif [[ $i == "filesystems_machine-mandriva20100215.tar.gz" ]] ; then
+ continue
+ fi
+ launch_and_log "$OUR_BASE_URL/$i" $i $1
+done
+}
+
+function download_our_pinocchio_filesystems {
+# global $OUR_BASE_URL
+# parameters : file-weight $1
+local KERNELS
+KERNELS=$(curl -L --silent --show-error "$OUR_BASE_URL" \
+ | grep -o 'href="kernels_[^"]*"' \
+ | grep -o "kernels_[^\"]*[.]tar[.]gz"\
+ )
+echo -e "\n\nStage « $FUNCNAME »"
+for i in $KERNELS; do
+ launch_and_log "$OUR_BASE_URL/$i" $i $1
+done
+}
+
+function download_our_v1_kernels {
+# global $OUR_TRUNK_SPECIFIC_URL
+# parameters : file-weight $1
+local KERNELS
+KERNELS=$(curl -L --silent --show-error "$OUR_TRUNK_SPECIFIC_URL" \
+ | grep -o 'href="kernels_[^"]*"' \
+ | grep -o "kernels_[^\"]*[.]tar[.]gz"\
+ )
+echo -e "\n\nStage « $FUNCNAME »"
+for i in $KERNELS; do
+ launch_and_log "$OUR_TRUNK_SPECIFIC_URL/$i" $i $1
+done
+}
+
+function download_our_v1_tiny_filesystems {
+# global $OUR_TRUNK_SPECIFIC_URL
+# parameters : file-weight $1
+local FILESYSTEMS
+FILESYSTEMS=$(curl -L --silent --show-error "$OUR_TRUNK_SPECIFIC_URL" \
+ | grep -o 'href="filesystems_guignol[^"]*"' \
+ | grep -o "filesystems_[^\"]*[.]tar[.]gz"\
+ )
+echo -e "\n\nStage « $FUNCNAME »"
+for i in $FILESYSTEMS; do
+ launch_and_log "$OUR_TRUNK_SPECIFIC_URL/$i" $i $1
+done
+}
+
+function download_our_v1_big_filesystems {
+# global $OUR_TRUNK_SPECIFIC_URL
+# parameters : file-weight $1
+local FILESYSTEMS
+FILESYSTEMS=$(curl -L --silent --show-error "$OUR_TRUNK_SPECIFIC_URL" \
+ | grep -o 'href="filesystems_[^"]*"' \
+ | grep -o "filesystems_[^\"]*[.]tar[.]gz"\
+ | grep -v "filesystems_guignol.*[.]tar[.]gz"\
+ )
+echo -e "\n\nStage « $FUNCNAME »"
+for i in $FILESYSTEMS; do
+ launch_and_log "$OUR_TRUNK_SPECIFIC_URL/$i" $i $1
+done
+}
+
+function launch_and_log {
+# Parameter : $1 URL, $2 filename, $3 file-weight,
+local currentPercentDownloading=$(echo "scale=2;$3/$total_weight*100" | bc)
+rest=$(echo "$rest-$3" | bc)
+local restPerCent=$(echo "scale=2;$rest/$total_weight*100"|bc)
+echo -e "We are going to download $3 Mo ($currentPercentDownloading% of the $total_weight Mo). \
+After this stage this is still $rest Mo to download (or \
+$restPerCent%) "
+curl -L -O -C - $1 # -C - => resume download if any ; -L => follow redirections
+# @todo sha256sums
+echo "Decompressing : "
+# tar -xvf ${2}
+rm -f ${2}
+echo -e "Success…\n\n\n———"
+}
+
+
+# =============================================================
+# Main {{{1
+# =============================================================
+
+echo -e "\n\n\nMarionnet filesystems downloader"
+echo "————————————————————————————————"
+
+echo "Download, and decompress step by step Marionnet's principal dependencies from mirror\
+(http://www.marionnet.org/download/)."
+print_description_script
+
+mkdir -p $PREFIX
+cd $PREFIX
+if [[ -e numberOfStepsPassedForDownloadMarionnetFilesystems.tmp ]]
+then
+ stepPerformed=$(cat ./numberOfStepsPassedForDownloadMarionnetFilesystems.tmp | head -n 1)
+ echo "Restart the download process from Step $stepPerformed"
+else
+ stepPerformed=0
+fi
+if [[ ! $stepPerformed =~ ^[0-9]$ ]] ; then
+ echo "Invalid step readen. Restart downloading"
+ stepPerformed=0
+fi
+
+if [[ $stepPerformed -gt 0 && $stepPerformed -le ${#array_weight_total_downloaded[@]} && $stepPerformed \
+ -lt $number_of_steps ]]; then
+ REQUIRED_MB=$(echo "$REQUIRED_MB-($total_weight-${array_weight_total_downloaded[$(($stepPerformed-1))]})" | bc )
+ total_weight=${array_weight_total_downloaded[$(($stepPerformed-1))]}
+fi
+
+# freespace > /dev/null # just verify free space
+
+while [[ $stepPerformed -lt $number_of_steps ]]; do
+ $(echo ${array_perform_action[$stepPerformed]})
+ stepPerformed=$(($stepPerformed+1))
+ echo -e "$stepPerformed\n$MARIONNET_VERSION" > \
+ "$PREFIX/numberOfStepsPassedForDownloadMarionnetFilesystems.tmp"
+done
+
+
+# }}}
+
+# =============================================================
+# Notes
+# =============================================================
+
+echo ""
+echo '---'
+echo "* Notes:"
+echo " - Customize your installation by editing /etc/marionnet/marionnet.conf"
+echo " - Under Arch Linux if you have installed Marionnet with the community \
+- driven for Arch Users (Aur), you must enable or start Aur \
+marionnetdaemon.service."
+
+echo '---'
+echo "Success."
+exit 0
+
+# vim: set noet: