dotg

a bitreich fosdem adventure
git clone https://git.parazyd.org/dotg
Log | Files | Refs

config (3134B)


      1 #!/bin/sh
      2 
      3 export path="/dotg/act-i"
      4 
      5 export savegame="/home/parazyd/dotg/act-i/$REMOTE_ADDR"
      6 export hipsters="$savegame/hipsters"
      7 export bedroom1="$savegame/bedroom1"
      8 export bedroom2="$savegame/bedroom2"
      9 export kitchen="$savegame/kitchen"
     10 export toilet1="$savegame/toilet1"
     11 export toilet2="$savegame/toilet2"
     12 export books="$savegame/books"
     13 export balcony="$savegame/balcony"
     14 export workdesk="$savegame/workdesk"
     15 export nextbox="$savegame/nextbox"
     16 export inventory="$savegame/inventory"
     17 export bench="$savegame/bench"
     18 
     19 [ -d "$savegame" ] && return
     20 
     21 mkdir -p \
     22 	"$hipsters" \
     23 	"$hipsters/coffeetable" \
     24 	"$hipsters/20h" \
     25 	"$hipsters/obese" \
     26 	"$hipsters/dj" \
     27 	"$bedroom1" \
     28 	"$bedroom2" \
     29 	"$kitchen" \
     30 	"$kitchen/table" \
     31 	"$kitchen/sink" \
     32 	"$kitchen/cupboard" \
     33 	"$kitchen/fridge" \
     34 	"$toilet1/toilet" \
     35 	"$toilet1/shower" \
     36 	"$toilet2/toilet" \
     37 	"$toilet2/shower" \
     38 	"$books" \
     39 	"$balcony" \
     40 	"$workdesk" \
     41 	"$nextbox" \
     42 	"$bench" \
     43 	"$inventory"
     44 
     45 printf 1  > "$inventory/Old_Thinkpad"
     46 printf 1  > "$inventory/Plastic_bottle_of_rakia"
     47 printf 20 > "$inventory/Cigarettes"
     48 printf 3  > "$inventory/Red_Lighter"
     49 printf 1  > "$inventory/White_Lighter"
     50 printf 1  > "$inventory/Smartphone"
     51 printf 0  > "$inventory/.notyet"
     52 
     53 printf 0 > "$hipsters/obese/.drunklevel"
     54 printf 1 > "$hipsters/obese/Plate_of_Bolognese_Sauce"
     55 printf 1 > "$hipsters/20h/Plate_of_Bolognese_Sauce"
     56 printf 1 > "$hipsters/coffeetable/Dirty_Ashtray"
     57 printf 1 > "$hipsters/coffeetable/Empty_Beer_Bottles"
     58 printf 1 > "$hipsters/coffeetable/Empty_Glasses"
     59 
     60 printf 100 > "$balcony/Beers"
     61 printf 100 > "$balcony/Chocolate_Milks"
     62 
     63 printf 1 > "$bedroom1/.notyet"
     64 
     65 printf 1 > "$bedroom2/Unlocked_Macbook"
     66 printf 1 > "$bedroom2/Google_Ad_coupons"
     67 printf 1 > "$bedroom2/.notyet"
     68 
     69 printf 1 > "$toilet1/toilet/Vomit"
     70 printf 1 > "$toilet1/shower/.notyet"
     71 
     72 printf 1 > "$toilet2/toilet/Water"
     73 printf 1 > "$toilet2/shower/Plastic_bag"
     74 printf 1 > "$toilet2/shower/.notyet"
     75 printf 1 > "$toilet2/Cocaine"
     76 
     77 printf 1 > "$nextbox/Terminal"
     78 printf 1 > "$nextbox/Keyboard"
     79 printf 1 > "$nextbox/Mouse"
     80 
     81 printf 1 > "$workdesk/Locked_computer"
     82 printf 1 > "$workdesk/Keychain_with_a_key"
     83 
     84 printf 1 > "$books/Also_sprach_Zarathustra"
     85 printf 1 > "$books/The_Birth_of_Tragedy"
     86 printf 1 > "$books/Siddhartha"
     87 printf 1 > "$books/Steppenwolf"
     88 printf 1 > "$books/Baby_and_child_care"
     89 printf 1 > "$books/The_C_Programming_Language"
     90 printf 1 > "$books/Developing_NodeJS"
     91 printf 1 > "$books/To_Kill_a_Mockingbird"
     92 printf 1 > "$books/Sex_drugs_and_cocoa_puffs"
     93 printf 1 > "$books/Fight_Club"
     94 printf 1 > "$books/Fear_and_loathing_in_Las_Vegas"
     95 printf 1 > "$books/The_Dharma_Bums"
     96 
     97 printf 1 > "$kitchen/fridge/Wifi_password"
     98 printf 1 > "$kitchen/fridge/Old_yoghurt"
     99 printf 8 > "$kitchen/fridge/Beers"
    100 printf 8 > "$kitchen/fridge/Chocolate_Milks"
    101 printf 1 > "$kitchen/fridge/Plastic_bag"
    102 printf 1 > "$kitchen/fridge/.notyet"
    103 printf 1 > "$kitchen/table/Empty_beer_bottles"
    104 printf 1 > "$kitchen/table/Rolling_tobacco"
    105 printf 1 > "$kitchen/table/Empty_Glasses"
    106 printf 1 > "$kitchen/cupboard/Plates"
    107 printf 1 > "$kitchen/cupboard/Empty_Glasses"
    108 printf 1 > "$kitchen/sink/Dirt"
    109 printf 1 > "$kitchen/sink/.notyet"